]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Force CUDA host compiler to be the same as the one used as C++ compiler
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 22 Oct 2018 23:46:44 +0000 (01:46 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 22 Oct 2018 23:49:20 +0000 (01:49 +0200)
cmake/configure/configure_1_cuda.cmake

index c82b96b08f19652bc94f32f37c847000074a787c..eaec860435a6d7a71e7a71a82abf5c33ad14fd36 100644 (file)
@@ -119,6 +119,7 @@ MACRO(FEATURE_CUDA_CONFIGURE_EXTERNAL)
   # compiler:
   #
   SET(CMAKE_CUDA_COMPILER "${CUDA_NVCC_EXECUTABLE}")
+  SET(CMAKE_CUDA_HOST_COMPILER "${CMAKE_CXX_COMPILER}")
   ENABLE_LANGUAGE(CUDA)
 
   MARK_AS_ADVANCED(CMAKE_CUDA_HOST_COMPILER)

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.