correct cublas path in cuda_ops cmakelists

This commit is contained in:
jinjiali 2022-02-25 17:01:52 +08:00
parent 1de823f1eb
commit 2c47b286dd
1 changed files with 2 additions and 3 deletions

View File

@ -16,12 +16,11 @@ if(ENABLE_GPU)
target_compile_options(cuda_common_obj PRIVATE "-std=c++17")
cuda_add_library(cuda_ops SHARED ${CUDA_OPS_SRC_LIST} $<TARGET_OBJECTS:cuda_common_obj>)
message("add gpu lib to cuda_ops")
target_link_libraries(cuda_ops mindspore_core
target_link_libraries(cuda_ops mindspore_core cublas
${CUDA_PATH}/lib64/libcurand.so
${CUDNN_LIBRARY_PATH}
${CUDA_PATH}/lib64/libcudart.so
${CUDA_PATH}/lib64/stubs/libcuda.so
${CUDA_PATH}/lib64/libcusolver.so
${CUDA_PATH}/lib64/libcufft.so
${CUDA_PATH}/lib64/libcublas.so)
${CUDA_PATH}/lib64/libcufft.so)
endif()