]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also force the CUDA host compiler to match the C++ compiler for DEAL_II_INVOKE_AUTOPILOT
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 25 Oct 2018 15:25:31 +0000 (17:25 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 25 Oct 2018 15:27:53 +0000 (17:27 +0200)
cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index 0db848ec664b8e5671caf79f263dd0cc0a32eeeb..94fcbc8a4982d4a3b68b0e291db38b668c660b75 100644 (file)
@@ -47,6 +47,7 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT)
   # Make sure we can treat CUDA targets if available
   IF(DEAL_II_WITH_CUDA)
     ENABLE_LANGUAGE(CUDA)
+    SET(CMAKE_CUDA_HOST_COMPILER "${CMAKE_CXX_COMPILER}")
   ENDIF()
 
   # Define and setup a compilation target:

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.