Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FT Add support for libpaddle.so for paddle2.4 #3545

Merged
merged 2 commits into from
Oct 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions paddlenlp/ops/faster_transformer/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,22 @@ else(ON_INFER)
)
endif()

if(EXISTS ${PY_LIB_DIR}/../fluid/core_avx.so)
if(EXISTS ${PY_LIB_DIR}/../fluid/libpaddle.so)
set(lib_link
-l:core_avx.so
-lpaddle
)
link_directories(
${PY_LIB_DIR}/../fluid/
elseif(EXISTS ${PY_LIB_DIR}/../fluid/core_avx.so)
set(lib_link
-l:core_avx.so
)
else()
set(lib_link
-l:core_noavx.so
)
link_directories(
${PY_LIB_DIR}/../fluid/
)
endif()
link_directories(
${PY_LIB_DIR}/../fluid/
)

set(ft_lib_link
-ldecoder -ldecoding -ltopk -lcuda_int8_kernels -lcuda_kernels -lonline_softmax_beamsearch -ltransformer_kernels -lattention_kernels -lencoder -lnccl_utils -lnvtx_utils
Expand Down