Skip to content

Commit a66f013

Browse files
authored
Merge pull request #170 from eromero-vlc/eloy/fix-cuda-linking
Avoid cuda device compiling step when linking against the library.
2 parents 17e0a2a + db0854a commit a66f013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SRC/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ foreach(target ${targets})
409409
if (HAVE_COMBBLAS)
410410
set_target_properties(${target} PROPERTIES
411411
CUDA_SEPARABLE_COMPILATION ON
412+
CUDA_RESOLVE_DEVICE_SYMBOLS ON
412413
OUTPUT_NAME superlu_dist
413414
VERSION ${PROJECT_VERSION}
414415
SOVERSION ${VERSION_MAJOR}
@@ -417,6 +418,7 @@ foreach(target ${targets})
417418
else()
418419
set_target_properties(${target} PROPERTIES
419420
CUDA_SEPARABLE_COMPILATION ON
421+
CUDA_RESOLVE_DEVICE_SYMBOLS ON
420422
OUTPUT_NAME superlu_dist
421423
VERSION ${PROJECT_VERSION}
422424
SOVERSION ${VERSION_MAJOR}

0 commit comments

Comments
 (0)