Skip to content

Commit

Permalink
Use TTMLIR shared lib in tt-forge (#44)
Browse files Browse the repository at this point in the history
This will replace array of libs in `tt-forge` with single lib.
  • Loading branch information
mtopalovicTT authored Aug 8, 2024
1 parent 7b37a74 commit aa9f431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
24 changes: 4 additions & 20 deletions pybuda/csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ add_dependencies(ttforge_csrc_objs build_tt_mlir)

######## ttforge_csrc ########

set(TTMLIR_LIB_DIR "${CMAKE_SOURCE_DIR}/third_party/tt-mlir/build/lib")
set(TTMLIR_LIB_DIR "${CMAKE_SOURCE_DIR}/third_party/tt-mlir/build/lib/SharedLib")
set(TTRUNTIME_LIB_DIR "${CMAKE_SOURCE_DIR}/third_party/tt-mlir/build/runtime/lib")
set(METAL_LIB_DIR "${CMAKE_SOURCE_DIR}/third_party/tt-mlir/third_party/tt-metal/src/tt-metal-build/lib")
set(TORCH_LIB_DIR "${TTFORGE_VENV_DIR}/lib/${TTFORGE_PYTHON_VERSION}/site-packages/torch/lib")
Expand All @@ -84,25 +84,9 @@ target_link_libraries(ttforge_csrc PRIVATE
# NOTE: ordering of the libraries will affect the linking
LLVM
MLIR
TTNNTargetFlatbuffer
MLIRTTDialect
MLIRTTIRDialect
MLIRTTNNDialect
MLIRTTKernelDialect
MLIRTTMetalDialect
MLIRTTIRTransforms
MLIRTTNNTransforms
MLIRTTIRAnalysis
MLIRTTNNPipelines
TTMLIRTTNNToEmitC
TTRuntime
TTRuntimeTTNN
TTMLIRTTIRToTTNN
tt_metal
device
tt_eager
ttnn
flatbuffers

TTMLIR

xml2
curses
z
Expand Down

0 comments on commit aa9f431

Please sign in to comment.