Skip to content

Commit

Permalink
address feedback/remove unused libs
Browse files Browse the repository at this point in the history
  • Loading branch information
vwellsTT committed Jan 31, 2025
1 parent f6cc44a commit 594b62f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ else()

include(ExternalProject)
set(TT_MLIR_LIBRARY_PATH ${PROJECT_SOURCE_DIR}/third_party/tt-mlir/src/tt-mlir-build/lib/SharedLib/libTTMLIR.so)
set(TT_MLIR_SHLO_LIBRARY_PATH ${PROJECT_SOURCE_DIR}/third_party/tt-mlir/src/tt-mlir-build/lib/libTTMLIRStableHLOToTTIR.a)
set(TT_MLIR_PIPELINES_LIBRARY_PATH ${PROJECT_SOURCE_DIR}/third_party/tt-mlir/src/tt-mlir-build/lib/libMLIRTTIRPipelines.a)
ExternalProject_Add(
tt-mlir
PREFIX ${TTTORCH_SOURCE_DIR}/third_party/tt-mlir
Expand All @@ -64,21 +62,13 @@ else()
GIT_REPOSITORY https://github.com/tenstorrent/tt-mlir.git
GIT_TAG ${TT_MLIR_VERSION}
GIT_PROGRESS ON
BUILD_BYPRODUCTS ${TT_MLIR_LIBRARY_PATH} ${TT_MLIR_SHLO_LIBRARY_PATH} ${TT_MLIR_PIPELINES_LIBRARY_PATH}
BUILD_BYPRODUCTS ${TT_MLIR_LIBRARY_PATH}
)

add_library(TTMLIRShared SHARED IMPORTED GLOBAL)
set_target_properties(TTMLIRShared PROPERTIES EXCLUDE_FROM_ALL TRUE IMPORTED_LOCATION ${TT_MLIR_LIBRARY_PATH})
add_dependencies(TTMLIRShared tt-mlir)

add_library(TTMLIRStableHLOToTTIR STATIC IMPORTED GLOBAL)
set_target_properties(TTMLIRStableHLOToTTIR PROPERTIES EXCLUDE_FROM_ALL TRUE IMPORTED_LOCATION ${TT_MLIR_SHLO_LIBRARY_PATH})
add_dependencies(TTMLIRStableHLOToTTIR tt-mlir)

add_library(MLIRTTIRPipelines STATIC IMPORTED GLOBAL)
set_target_properties(MLIRTTIRPipelines PROPERTIES EXCLUDE_FROM_ALL TRUE IMPORTED_LOCATION ${TT_MLIR_PIPELINES_LIBRARY_PATH})
add_dependencies(MLIRTTIRPipelines tt-mlir)

install(FILES ${TT_MLIR_LIBRARY_PATH} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)

endif()

0 comments on commit 594b62f

Please sign in to comment.