提交 5cc5da6f 编写于 作者: J juncaipeng

add cuda_kernels just with LITE_WITH_CUDA

上级 0da40cd6
...@@ -15,8 +15,10 @@ if (NOT LITE_ON_TINY_PUBLISH) ...@@ -15,8 +15,10 @@ if (NOT LITE_ON_TINY_PUBLISH)
add_library(paddle_full_api_shared SHARED "") add_library(paddle_full_api_shared SHARED "")
target_sources(paddle_full_api_shared PUBLIC ${__lite_cc_files} paddle_api.cc light_api.cc cxx_api.cc cxx_api_impl.cc light_api_impl.cc) target_sources(paddle_full_api_shared PUBLIC ${__lite_cc_files} paddle_api.cc light_api.cc cxx_api.cc cxx_api_impl.cc light_api_impl.cc)
add_dependencies(paddle_full_api_shared op_list_h kernel_list_h framework_proto xxhash ) add_dependencies(paddle_full_api_shared op_list_h kernel_list_h framework_proto xxhash )
target_link_libraries(paddle_full_api_shared framework_proto xxhash ${math_cuda})# ${cuda_kernels}) target_link_libraries(paddle_full_api_shared framework_proto xxhash)# ${cuda_kernels})
target_link_libraries(paddle_full_api_shared "-Wl,--whole-archive" ${cuda_kernels} "-Wl,--no-whole-archive") if(LITE_WITH_CUDA)
target_link_libraries(paddle_full_api_shared ${math_cuda} "-Wl,--whole-archive" ${cuda_kernels} "-Wl,--no-whole-archive")
endif(LITE_WITH_CUDA)
add_dependencies(lite_compile_deps paddle_full_api_shared) add_dependencies(lite_compile_deps paddle_full_api_shared)
#light api dynamic library #light api dynamic library
lite_cc_library(paddle_light_api_shared MODULE lite_cc_library(paddle_light_api_shared MODULE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册