Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add paddle inference path to BACKEND_LIBRARY_PATH and BACKEND_INCLUDE…
Browse files Browse the repository at this point in the history
…_DIRS
HydrogenSulfate committed Jan 13, 2025
1 parent f3f046e commit 9dbc547
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -131,12 +131,25 @@ if(ENABLE_PADDLE)
include_directories("${PADDLE_LIB_THIRD_PARTY_PATH}glog/include")
include_directories("${PADDLE_LIB_THIRD_PARTY_PATH}gflags/include")
include_directories("${PADDLE_LIB_THIRD_PARTY_PATH}xxhash/include")
list(APPEND BACKEND_INCLUDE_DIRS
"${PADDLE_LIB_THIRD_PARTY_PATH}protobuf/include")
list(APPEND BACKEND_INCLUDE_DIRS "${PADDLE_LIB_THIRD_PARTY_PATH}glog/include")
list(APPEND BACKEND_INCLUDE_DIRS
"${PADDLE_LIB_THIRD_PARTY_PATH}gflags/include")
list(APPEND BACKEND_INCLUDE_DIRS
"${PADDLE_LIB_THIRD_PARTY_PATH}xxhash/include")

link_directories("${PADDLE_LIB_THIRD_PARTY_PATH}protobuf/lib")
link_directories("${PADDLE_LIB_THIRD_PARTY_PATH}glog/lib")
link_directories("${PADDLE_LIB_THIRD_PARTY_PATH}gflags/lib")
link_directories("${PADDLE_LIB_THIRD_PARTY_PATH}xxhash/lib")
link_directories("${PADDLE_INFERENCE_DIR}/paddle/lib")
list(APPEND BACKEND_LIBRARY_PATH "${PADDLE_INFERENCE_DIR}/paddle/lib")
list(APPEND BACKEND_LIBRARY_PATH
"${PADDLE_INFERENCE_DIR}/third_party/install/onednn/lib")
list(APPEND BACKEND_LIBRARY_PATH
"${PADDLE_INFERENCE_DIR}/third_party/install/mklml/lib")

# if (USE_ROCM_TOOLKIT) add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1) endif()
endif(ENABLE_PADDLE)

0 comments on commit 9dbc547

Please sign in to comment.