]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Introduce configuration variable CUDA_DIR to select CUDA installation 3392/head
authorKarl Ljungkvist <k.ljungkvist@gmail.com>
Thu, 3 Nov 2016 08:25:40 +0000 (09:25 +0100)
committerKarl Ljungkvist <k.ljungkvist@gmail.com>
Fri, 4 Nov 2016 18:48:31 +0000 (19:48 +0100)
cmake/configure/configure_1_cuda.cmake

index d419620a5c8a38ec8e8b212b4f8768a1c6ae5d72..e14fa2c6164b126d711ba67516d9daf449f1bd85 100644 (file)
@@ -43,6 +43,11 @@ MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
 
     SET(${var} TRUE)
 
+    IF(DEFINED CUDA_DIR)
+      SET(CUDA_TOOLKIT_ROOT_DIR "${CUDA_DIR}")
+    ENDIF()
+    MESSAGE(STATUS "Configured to use CUDA installation at ${CUDA_TOOLKIT_ROOT_DIR}")
+
     IF("${CUDA_NVCC_FLAGS}" MATCHES "-arch")
 
       # Compute Capability specified explicitly.

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.