fixed: linking of some cuda tests with shared libraries

need to link against the cudart library
This commit is contained in:
Arne Morten Kvarving 2024-06-03 08:50:46 +02:00
parent 59aee6c56c
commit d32c8c2d90

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)