From a8e9e22476c96d60b86f284f2f4eb83760805968 Mon Sep 17 00:00:00 2001 From: Joseph Chu Date: Wed, 26 Jun 2024 19:29:27 +0000 Subject: [PATCH] #9735: fix issues with including reflect library --- tt_eager/tt_dnn/op_library/CMakeLists.txt | 2 +- ttnn/CMakeLists.txt | 3 +-- ttnn/cpp/ttnn/device_operation.hpp | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tt_eager/tt_dnn/op_library/CMakeLists.txt b/tt_eager/tt_dnn/op_library/CMakeLists.txt index 7dab6353f47..d5f96ded232 100644 --- a/tt_eager/tt_dnn/op_library/CMakeLists.txt +++ b/tt_eager/tt_dnn/op_library/CMakeLists.txt @@ -215,7 +215,7 @@ set(TT_DNN_SRCS add_library(tt_dnn OBJECT ${TT_DNN_SRCS}) -target_link_libraries(tt_dnn PUBLIC metal_header_directories compiler_flags umd_device) +target_link_libraries(tt_dnn PUBLIC metal_header_directories compiler_flags umd_device reflect::reflect) target_include_directories(tt_dnn PUBLIC ${UMD_HOME} ${PROJECT_SOURCE_DIR} diff --git a/ttnn/CMakeLists.txt b/ttnn/CMakeLists.txt index cb72888ac86..69fea7524ce 100644 --- a/ttnn/CMakeLists.txt +++ b/ttnn/CMakeLists.txt @@ -16,8 +16,7 @@ set(TTNN_SRCS add_library(ttnn_lib OBJECT ${TTNN_SRCS}) target_compile_options(ttnn_lib PUBLIC -MP -Wno-int-to-pointer-cast -fno-var-tracking) target_link_libraries(ttnn_lib - PUBLIC compiler_flags metal_header_directories metal_common_libs - PRIVATE reflect::reflect + PUBLIC compiler_flags metal_header_directories metal_common_libs reflect::reflect ) target_include_directories(ttnn_lib PUBLIC ${UMD_HOME} diff --git a/ttnn/cpp/ttnn/device_operation.hpp b/ttnn/cpp/ttnn/device_operation.hpp index 06a59bb94ad..652eb88d8d0 100644 --- a/ttnn/cpp/ttnn/device_operation.hpp +++ b/ttnn/cpp/ttnn/device_operation.hpp @@ -15,6 +15,7 @@ #include "tt_stl/concepts.hpp" #include "tt_stl/reflection.hpp" #include "tt_stl/unique_any.hpp" +#include namespace ttnn {