Skip to content

Commit

Permalink
#8129: Build UMD with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmithTT committed Jun 3, 2024
1 parent 04e80e7 commit 977f4b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 105 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ if($ENV{ENABLE_TRACY})
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/tracy.cmake)
endif()

# Build umd_device
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/umd_device.cmake)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tt_metal/third_party/umd)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tt_metal/hw)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tt_metal)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tt_eager)
Expand Down
94 changes: 0 additions & 94 deletions cmake/umd_device.cmake

This file was deleted.

9 changes: 2 additions & 7 deletions tt_metal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ set(TT_METAL_OBJECTS
)

add_library(tt_metal ${TT_METAL_OBJECTS})
if(BUILD_SHARED_LIBS)
target_link_libraries(tt_metal PUBLIC device metal_common_libs)
add_dependencies(tt_metal umd_device)
else()
target_link_libraries(tt_metal PUBLIC ${UMD_STATIC_LIB} metal_common_libs)
add_dependencies(tt_metal umd_static_lib_target)
endif()
target_link_libraries(tt_metal PUBLIC device metal_common_libs)
add_dependencies(tt_metal umd_device)

target_link_libraries(tt_metal PUBLIC compiler_flags linker_flags metal_header_directories yaml-cpp $<$<BOOL:$ENV{ENABLE_TRACY}>:TracyClient>) # linker_flags = -rdynamic if tracy enabled
target_link_directories(tt_metal PUBLIC ${CMAKE_BINARY_DIR}/lib) # required so tt_metal can find device library
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/third_party/umd
Submodule umd updated 1 files
+54 −0 CMakeLists.txt

0 comments on commit 977f4b0

Please sign in to comment.