-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Ticket closes #2138 ### What's changed * Moved cpp files out of include subdirs and in the same directory as cmake files. * Split ttnn utils library into ttnn utils and ttnn types. * Didn't merge testing utils and ttnn utils since the testing utils are purely helpers for testing - thus I didn't want to expose these APIs in the ttnn utils lib. These APIs are guarded by the `TTMLIR_ENABLE_RUNTIME_TESTS` cmake flag, and won't be compiled if `TTMLIR_ENABLE_RUNTIME_TESTS` is not set. * Renamed some libraries to make their purposes clearer.
- Loading branch information
Showing
17 changed files
with
87 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
add_library(TTRuntimeTTNNTypes | ||
STATIC | ||
types.cpp | ||
) | ||
set_property(TARGET TTRuntimeTTNNTypes PROPERTY CXX_STANDARD 20) | ||
target_compile_options(TTRuntimeTTNNTypes PUBLIC -mavx -mavx2) | ||
target_include_directories(TTRuntimeTTNNTypes PUBLIC | ||
${PROJECT_SOURCE_DIR}/runtime/include | ||
${PROJECT_SOURCE_DIR}/runtime/lib/ttnn/include | ||
${PROJECT_BINARY_DIR}/include/ttmlir/Target/Common | ||
) | ||
target_include_directories(TTRuntimeTTNNTypes SYSTEM PUBLIC "$<BUILD_INTERFACE:${TTMETAL_INCLUDE_DIRS}>") | ||
add_dependencies(TTRuntimeTTNNTypes TTNN_LIBRARY tt-metal FBS_GENERATION) | ||
target_link_libraries(TTRuntimeTTNNTypes PUBLIC TTNN_LIBRARY) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
add_library(TTRuntimeTTNNUtils | ||
STATIC | ||
utils.cpp | ||
) | ||
set_property(TARGET TTRuntimeTTNNUtils PROPERTY CXX_STANDARD 20) | ||
target_compile_options(TTRuntimeTTNNUtils PUBLIC -mavx -mavx2) | ||
target_include_directories(TTRuntimeTTNNUtils PUBLIC | ||
${PROJECT_SOURCE_DIR}/runtime/include | ||
${PROJECT_SOURCE_DIR}/runtime/lib/ttnn/include | ||
${PROJECT_BINARY_DIR}/include/ttmlir/Target/Common | ||
) | ||
target_include_directories(TTRuntimeTTNNUtils SYSTEM PUBLIC "$<BUILD_INTERFACE:${TTMETAL_INCLUDE_DIRS}>") | ||
add_dependencies(TTRuntimeTTNNUtils TTNN_LIBRARY tt-metal FBS_GENERATION) | ||
target_link_libraries(TTRuntimeTTNNUtils PUBLIC TTNN_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
add_runtime_gtest(subtract_test test_subtract.cpp) | ||
if (NOT TTMLIR_ENABLE_RUNTIME_TESTS OR NOT TT_RUNTIME_ENABLE_TTNN) | ||
add_library(TTRuntimeTTNNTestLib INTERFACE) | ||
return() | ||
endif() | ||
|
||
add_library(TTRuntimeTTNNTestLib | ||
STATIC | ||
utils.cpp | ||
dylib.cpp | ||
) | ||
set_property(TARGET TTRuntimeTTNNTestLib PROPERTY CXX_STANDARD 20) | ||
target_compile_options(TTRuntimeTTNNTestLib PUBLIC -mavx -mavx2) | ||
target_include_directories(TTRuntimeTTNNTestLib PUBLIC | ||
${PROJECT_SOURCE_DIR}/runtime/include | ||
${PROJECT_SOURCE_DIR}/runtime/lib/ttnn/include | ||
${PROJECT_SOURCE_DIR}/runtime/lib/test/include | ||
${PROJECT_SOURCE_DIR}/runtime/test/include | ||
${PROJECT_BINARY_DIR}/include/ttmlir/Target/Common | ||
) | ||
target_include_directories(TTRuntimeTTNNTestLib SYSTEM PUBLIC "$<BUILD_INTERFACE:${TTMETAL_INCLUDE_DIRS}>") | ||
add_dependencies(TTRuntimeTTNNTestLib TTRuntimeTTNNUtils TTNN_LIBRARY FBS_GENERATION) | ||
target_link_libraries(TTRuntimeTTNNTestLib PUBLIC TTRuntimeTTNNUtils TTNN_LIBRARY) | ||
|
||
add_subdirectory(gtest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_runtime_gtest(subtract_test test_subtract.cpp) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters