]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix cuda-9+ && cmake-3.12+ 7382/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 25 Oct 2018 15:24:03 +0000 (17:24 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 25 Oct 2018 15:24:03 +0000 (17:24 +0200)
source/CMakeLists.txt

index c79c40e1806cd14a436628260ff2c88e3c47ae2d..7173d25b85b730b911fa2218b57e3ca4da96e513 100644 (file)
@@ -120,6 +120,14 @@ FOREACH(build ${DEAL_II_BUILD_TYPES})
     RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}"
     )
 
+  IF(DEAL_II_WITH_CUDA)
+    # We need to use the CUDA linker to avoid confusing nvlink with sonaming.
+    SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
+    PROPERTIES
+    LINKER_LANGUAGE "CUDA"
+    )
+  ENDIF()
+
   IF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
     SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
       PROPERTIES

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.