Skip to content

Commit

Permalink
Add CMakeLists for experimental CCL ops
Browse files Browse the repository at this point in the history
  • Loading branch information
Aswinmcw committed Dec 9, 2024
1 parent bdd69ed commit 4a2bb01
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 3 additions & 1 deletion ttnn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,14 @@ endforeach()
### Setup TTNN as a shared library with optional Python bindings
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cpp/ttnn/tensor)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cpp/ttnn/operations/ccl)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cpp/ttnn/operations//experimental/ccl)
add_subdirectory(cpp/ttnn/deprecated)
set(TTNN_FINAL_SRC
${TTNN_SRC}
${CCL_TTNN_SRCS}
${QUEUE_SRCS}
${TENSOR_SRCS}
${CCL_TTNN_SRCS}
${CCL_EXPERIMENTAL_TTNN_SRCS}
${TT_DNN_SRCS}
)

Expand Down
8 changes: 0 additions & 8 deletions ttnn/cpp/ttnn/operations/ccl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ set(CCL_TTNN_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/barrier/device/barrier_op.cpp
${CMAKE_CURRENT_SOURCE_DIR}/barrier/barrier.cpp
${CMAKE_CURRENT_SOURCE_DIR}/barrier/barrier_pybind.cpp
#Experimental
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_gather_matmul/all_gather_matmul.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_gather_matmul/all_gather_matmul_pybind.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_gather_matmul/device/all_gather_matmul_op.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_gather_matmul/device/multi_core/all_gather_matmul_op_multi_core.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_reduce/all_reduce.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_reduce/all_reduce_pybind.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../experimental/ccl/all_reduce/device/all_reduce_op.cpp
CACHE INTERNAL
"CCL sources to reuse in ttnn build"
)
12 changes: 12 additions & 0 deletions ttnn/cpp/ttnn/operations/experimental/ccl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set(CCL_EXPERIMENTAL_TTNN_SRCS
#Experimental Ops
${CMAKE_CURRENT_SOURCE_DIR}/all_gather_matmul/all_gather_matmul.cpp
${CMAKE_CURRENT_SOURCE_DIR}/all_gather_matmul/all_gather_matmul_pybind.cpp
${CMAKE_CURRENT_SOURCE_DIR}/all_gather_matmul/device/all_gather_matmul_op.cpp
${CMAKE_CURRENT_SOURCE_DIR}/all_gather_matmul/device/multi_core/all_gather_matmul_op_multi_core.cpp
${CMAKE_CURRENT_SOURCE_DIR}/all_reduce/all_reduce.cpp
${CMAKE_CURRENT_SOURCE_DIR}/all_reduce/all_reduce_pybind.cpp
${CMAKE_CURRENT_SOURCE_DIR}/all_reduce/device/all_reduce_op.cpp
CACHE INTERNAL
"CCL Experimental sources to reuse in ttnn build"
)

0 comments on commit 4a2bb01

Please sign in to comment.