Skip to content

Commit

Permalink
rewrite the way of linking libdiopi_impl.so for DICP (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrench-Git authored Oct 31, 2023
1 parent 2dab8b3 commit 292789e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dipu/torch_dipu/csrc_dipu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ target_link_libraries(${DIPU_LIB} ${DIPU_VENDOR_LIB})
target_link_libraries(${DIPU_LIB} ${PROJECT_SOURCE_DIR}/third_party/kineto/libkineto/build/fmt/libfmt.a)
target_link_libraries(${DIPU_LIB} ${PROJECT_SOURCE_DIR}/third_party/kineto/libkineto/build/libkineto.a)

target_link_libraries(${DIPU_LIB} -Wl,--no-as-needed diopi_impl -Wl,--as-needed)
# target_link_libraries(${DIPU_LIB} -Wl,--no-as-needed diopi_impl -Wl,--as-needed)
target_link_libraries(${DIPU_LIB} diopi_impl)
target_link_libraries(${DIPU_LIB} c10 torch torch_cpu)

set(CMAKE_THREAD_PREFER_PTHREAD ON)
Expand Down

0 comments on commit 292789e

Please sign in to comment.