From 6b38ef461a735b5bc0a7130d1d6d3f645095214e Mon Sep 17 00:00:00 2001 From: jpekkila Date: Wed, 11 Dec 2019 17:26:21 +0200 Subject: [PATCH] Puhti GPUDirect fails for some reason if the cuda library is linked with instead of cudart --- src/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 68713f5..f9682fe 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -23,7 +23,7 @@ add_dependencies(astaroth_kernels dsl_headers) # Compile core add_library(astaroth_core STATIC astaroth.cc node.cc device.cc) target_include_directories(astaroth_core PRIVATE . "${CUDA_INCLUDE_DIRS}") -target_link_libraries(astaroth_core m astaroth_kernels "${CUDA_LIBRARIES}") +target_link_libraries(astaroth_core m astaroth_kernels cudart) target_compile_definitions(astaroth_core PRIVATE AC_USE_CUDA_RUNTIME_API) set_target_properties(astaroth_core PROPERTIES POSITION_INDEPENDENT_CODE ON) add_dependencies(astaroth_kernels dsl_headers)