mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: linking of some cuda tests with shared libraries
need to link against the cudart library
This commit is contained in:
parent
59aee6c56c
commit
d32c8c2d90
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user