From 244d3c22f2dc0804bc90157d752883964b2a0f7f Mon Sep 17 00:00:00 2001 From: Bezulj Marko Date: Mon, 23 Dec 2024 18:56:53 +0000 Subject: [PATCH] fix pre-commit --- .github/workflows/build-and-test.yml | 2 +- include/ttmlir/Dialect/TT/Utils/CoreRangeSet.h | 2 +- include/ttmlir/Dialect/TTNN/Utils/VirtualToPhysicalGrid.h | 2 +- lib/OpModel/TTNN/SingletonDeviceContext.cpp | 2 +- test/lit.cfg.py | 4 +++- test/unittests/CMakeLists.txt | 2 +- test/unittests/OpModel/CMakeLists.txt | 2 +- test/unittests/OpModel/TTNN/CMakeLists.txt | 2 +- test/unittests/OpModel/TTNN/Conversion/CMakeLists.txt | 2 +- test/unittests/OpModel/TTNN/Lib/CMakeLists.txt | 2 +- test/unittests/OpModel/TTNN/Lib/TestOpModelLib.cpp | 2 +- test/unittests/OpModel/TTNN/Op/CMakeLists.txt | 2 +- test/unittests/OpModel/TTNN/Op/TestOpModelInterface.cpp | 2 +- 13 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f73e4f5ac..8509cec57 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -211,7 +211,7 @@ jobs: ls build/ ls build/test .build/test/unittests/OpModel/TTNN/Conversion/TestConversion - .build/test/unittests/OpModel/TTNN/Op/TestOpModelInterface + .build/test/unittests/OpModel/TTNN/Op/TestOpModelInterface .build/test/unittests/OpModel/TTNN/Lib/TestOpModelLib - name: Upload Test Report diff --git a/include/ttmlir/Dialect/TT/Utils/CoreRangeSet.h b/include/ttmlir/Dialect/TT/Utils/CoreRangeSet.h index f81b1e93a..65feffaa9 100644 --- a/include/ttmlir/Dialect/TT/Utils/CoreRangeSet.h +++ b/include/ttmlir/Dialect/TT/Utils/CoreRangeSet.h @@ -72,4 +72,4 @@ inline std::vector toCoreRangeSet(GridAttr virtualGrid, } // namespace mlir::tt::utils -#endif // TTMLIR_DIALECT_TT_UTILS_CORERANGESET_H \ No newline at end of file +#endif // TTMLIR_DIALECT_TT_UTILS_CORERANGESET_H diff --git a/include/ttmlir/Dialect/TTNN/Utils/VirtualToPhysicalGrid.h b/include/ttmlir/Dialect/TTNN/Utils/VirtualToPhysicalGrid.h index 205e8ea86..f998e9942 100644 --- a/include/ttmlir/Dialect/TTNN/Utils/VirtualToPhysicalGrid.h +++ b/include/ttmlir/Dialect/TTNN/Utils/VirtualToPhysicalGrid.h @@ -73,4 +73,4 @@ auto SingleDeviceCreateVirtualToPhysicalLayoutMap( } } } // namespace mlir::tt::ttnn::utils -#endif // TTMLIR_DIALECT_TTNN_UTILS_VIRTUALTOPHYSICALGRID_H \ No newline at end of file +#endif // TTMLIR_DIALECT_TTNN_UTILS_VIRTUALTOPHYSICALGRID_H diff --git a/lib/OpModel/TTNN/SingletonDeviceContext.cpp b/lib/OpModel/TTNN/SingletonDeviceContext.cpp index e3d767007..52d378390 100644 --- a/lib/OpModel/TTNN/SingletonDeviceContext.cpp +++ b/lib/OpModel/TTNN/SingletonDeviceContext.cpp @@ -23,4 +23,4 @@ SingletonDeviceContext &SingletonDeviceContext::getInstance() { } } // namespace mlir::tt::op_model::ttnn -#endif // TTMLIR_ENABLE_OPMODEL \ No newline at end of file +#endif // TTMLIR_ENABLE_OPMODEL diff --git a/test/lit.cfg.py b/test/lit.cfg.py index e0c52b31d..0d4ccfe6a 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -104,4 +104,6 @@ def set_system_desc_features(system_desc): llvm_config.with_environment("TT_METAL_HOME", os.environ["TT_METAL_HOME"]) else: - llvm_config.with_environment("TT_METAL_HOME", r"/__w/tt-mlir/third_party/tt-metal/src/tt-metal") \ No newline at end of file + llvm_config.with_environment( + "TT_METAL_HOME", r"/__w/tt-mlir/third_party/tt-metal/src/tt-metal" + ) diff --git a/test/unittests/CMakeLists.txt b/test/unittests/CMakeLists.txt index 40ff28f58..577f1969b 100644 --- a/test/unittests/CMakeLists.txt +++ b/test/unittests/CMakeLists.txt @@ -7,4 +7,4 @@ endfunction() add_subdirectory(TestScheduler) add_subdirectory(Optimizer) -add_subdirectory(OpModel) \ No newline at end of file +add_subdirectory(OpModel) diff --git a/test/unittests/OpModel/CMakeLists.txt b/test/unittests/OpModel/CMakeLists.txt index 84728a0b3..9c34667d0 100644 --- a/test/unittests/OpModel/CMakeLists.txt +++ b/test/unittests/OpModel/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory(TTNN) \ No newline at end of file +add_subdirectory(TTNN) diff --git a/test/unittests/OpModel/TTNN/CMakeLists.txt b/test/unittests/OpModel/TTNN/CMakeLists.txt index 1a6cefc15..8a0ff2b71 100644 --- a/test/unittests/OpModel/TTNN/CMakeLists.txt +++ b/test/unittests/OpModel/TTNN/CMakeLists.txt @@ -1,3 +1,3 @@ add_subdirectory(Conversion) add_subdirectory(Lib) -add_subdirectory(Op) \ No newline at end of file +add_subdirectory(Op) diff --git a/test/unittests/OpModel/TTNN/Conversion/CMakeLists.txt b/test/unittests/OpModel/TTNN/Conversion/CMakeLists.txt index 285785367..35c9e3a88 100644 --- a/test/unittests/OpModel/TTNN/Conversion/CMakeLists.txt +++ b/test/unittests/OpModel/TTNN/Conversion/CMakeLists.txt @@ -22,4 +22,4 @@ target_link_libraries(TestConversion MLIRTTIRDialect MLIRTTNNDialect ) -endif() \ No newline at end of file +endif() diff --git a/test/unittests/OpModel/TTNN/Lib/CMakeLists.txt b/test/unittests/OpModel/TTNN/Lib/CMakeLists.txt index ec32ffd53..f32094b6f 100644 --- a/test/unittests/OpModel/TTNN/Lib/CMakeLists.txt +++ b/test/unittests/OpModel/TTNN/Lib/CMakeLists.txt @@ -21,4 +21,4 @@ target_link_libraries(TestOpModelLib MLIRTTIRDialect MLIRTTNNDialect ) -endif() \ No newline at end of file +endif() diff --git a/test/unittests/OpModel/TTNN/Lib/TestOpModelLib.cpp b/test/unittests/OpModel/TTNN/Lib/TestOpModelLib.cpp index 7582418fa..c16cd4b73 100644 --- a/test/unittests/OpModel/TTNN/Lib/TestOpModelLib.cpp +++ b/test/unittests/OpModel/TTNN/Lib/TestOpModelLib.cpp @@ -657,4 +657,4 @@ TEST_F(OpModelBase, MatmulSharded) { EXPECT_EQ(peak_size, 524288); } -} // namespace mlir::tt::op_model::ttnn \ No newline at end of file +} // namespace mlir::tt::op_model::ttnn diff --git a/test/unittests/OpModel/TTNN/Op/CMakeLists.txt b/test/unittests/OpModel/TTNN/Op/CMakeLists.txt index f76e97835..3a2c89530 100644 --- a/test/unittests/OpModel/TTNN/Op/CMakeLists.txt +++ b/test/unittests/OpModel/TTNN/Op/CMakeLists.txt @@ -21,4 +21,4 @@ target_link_libraries(TestOpModelInterface MLIRTTIRDialect MLIRTTNNDialect ) -endif() \ No newline at end of file +endif() diff --git a/test/unittests/OpModel/TTNN/Op/TestOpModelInterface.cpp b/test/unittests/OpModel/TTNN/Op/TestOpModelInterface.cpp index a86922e79..c782fdbf0 100644 --- a/test/unittests/OpModel/TTNN/Op/TestOpModelInterface.cpp +++ b/test/unittests/OpModel/TTNN/Op/TestOpModelInterface.cpp @@ -226,4 +226,4 @@ TEST_F(OpModelBase, MatmulInterface) { } } -} // namespace mlir::tt::ttnn \ No newline at end of file +} // namespace mlir::tt::ttnn