提交 934ba0bf 编写于 作者: L liaogang

Disable dynamic linked cuda libs default

上级 d41ac090
......@@ -28,7 +28,7 @@ include(system)
include(simd)
###################### Configurations ############################
option(WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" ON)
option(WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" OFF)
option(WITH_GPU "Compile PaddlePaddle with gpu" ${CUDA_FOUND})
option(WITH_DOUBLE "Compile PaddlePaddle with double precision, otherwise use single precision" OFF)
option(WITH_AVX "Compile PaddlePaddle with avx intrinsics" ${AVX_FOUND})
......
......@@ -120,6 +120,11 @@ function(link_paddle_exe TARGET_NAME)
target_link_libraries(${TARGET_NAME} rt)
endif()
endif()
if(NOT WITH_DSO)
target_link_libraries(${TARGET_NAME} ${WARPCTC_LIBRARIES})
endif()
add_dependencies(${TARGET_NAME} ${external_project_dependencies})
endfunction()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册