Merge pull request #5401 from akva2/fix_cuda_shared_linking

fixed: linking of some cuda tests with shared libraries
This commit is contained in:
Håkon Hægland
2024-06-24 11:33:36 +02:00
committed by GitHub

View File

@@ -743,6 +743,9 @@ if(CUDA_FOUND)
if (NOT USE_HIP)
target_link_libraries( opmsimulators PUBLIC ${CUDA_cusparse_LIBRARY} )
target_link_libraries( opmsimulators PUBLIC ${CUDA_cublas_LIBRARY} )
foreach(tgt test_cuda_safe_call test_cuda_check_last_error test_cuvector)
target_link_libraries(${tgt} CUDA::cudart)
endforeach()
endif()
if(USE_BDA_BRIDGE)
set_tests_properties(cusparseSolver PROPERTIES LABELS gpu_cuda)