Skip to content

Commit

Permalink
trimmed white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vkovinicTT committed Nov 14, 2024
1 parent a018219 commit 91d6097
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion forge/csrc/passes/mlir_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ runtime::Binary run_mlir_compiler(tt::ForgeGraphModule& module)
mlir_module->dump();

// save what's dumped to a file named "{name}.mlir"
reportify::dump_mlir("ttnn", mlir_module->getName()->str(), mlir_module.get());
reportify::dump_mlir("ttnn", mlir_module->getName()->str(), mlir_module.get());

// Generate binary from the MLIR module.
auto binary = mlir::tt::ttnn::ttnnToFlatbuffer(mlir_module.get());
Expand Down
8 changes: 5 additions & 3 deletions forge/csrc/reportify/reportify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ JsonNamePairs create_jsons_for_graph(
return this_json_name_pairs;
}

JsonNamePairs create_jsons_for_mlir(const std::string& file_name, const std::string& module_name, mlir::Operation* operation)
JsonNamePairs create_jsons_for_mlir(
const std::string& file_name, const std::string& module_name, mlir::Operation* operation)
{
JsonNamePairs this_json_name_pairs;

Expand All @@ -464,12 +465,13 @@ void dump_graph(
*
* This function generates a JSON representation of the given MLIR operation and writes it to a file.
* The file path is following: `$REPORTIFY_PATH$/$OPERATION_NAME$/mlir_reports/$FILE_NAME$.mlir`.
* If the environment variable "FORGE_DISABLE_REPORTIFY_DUMP" is set to true, the function returns without performing any action.
* If the environment variable "FORGE_DISABLE_REPORTIFY_DUMP" is set to true, the function returns without performing
* any action.
*
* @param name The name of the file to be saved (currently in use are 'ttir' and 'ttnn').
* @param operation A pointer to the MLIR operation to be dumped.
*/
void dump_mlir(const std::string& file_name, const std::string& module_name, mlir::Operation* operation)
void dump_mlir(const std::string& file_name, const std::string& module_name, mlir::Operation* operation)
{
if (env_as<bool>("FORGE_DISABLE_REPORTIFY_DUMP"))
return;
Expand Down

0 comments on commit 91d6097

Please sign in to comment.