Skip to content

Commit

Permalink
更新CMakeLists,修复Linux下无法找到 libdnnl.so.3 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Jul 29, 2024
1 parent ff72e29 commit 4ae3c0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ if(WITH_MKL)
else ()
set(MATH_LIB ${PADDLE_LIB}/third_party/install/mklml/lib/libmklml_intel${CMAKE_SHARED_LIBRARY_SUFFIX}
${PADDLE_LIB}/third_party/install/mklml/lib/libiomp5${CMAKE_SHARED_LIBRARY_SUFFIX})
# 添加库搜索目录,寻找 third_party/install/onednn/lib/libdnnl.so.3
link_directories("${PADDLE_LIB}/third_party/install/onednn/lib")
endif ()
set(MKLDNN_PATH "${PADDLE_LIB}/third_party/install/mkldnn")
if(EXISTS ${MKLDNN_PATH})
Expand Down

0 comments on commit 4ae3c0b

Please sign in to comment.