]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add CUDA setup to DEAL_II_INITIALIZE_CACHED_VARIABLES
authorMatthias Maier <tamiko@43-1.org>
Tue, 15 Aug 2017 06:39:52 +0000 (01:39 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 15 Aug 2017 06:39:52 +0000 (01:39 -0500)
cmake/macros/macro_deal_ii_initialize_cached_variables.cmake
tests/setup_testsubproject.cmake

index 0df86b033af5a122edd1c69f64c4802ab4dca153..ff9a2a859a9e892304463b6058e70c8f80dca9b3 100644 (file)
@@ -84,23 +84,31 @@ MACRO(DEAL_II_INITIALIZE_CACHED_VARIABLES)
 
   SET(CMAKE_CXX_COMPILER ${DEAL_II_CXX_COMPILER} CACHE STRING
     "CXX Compiler.")
-
-  SET(CMAKE_C_COMPILER ${DEAL_II_C_COMPILER} CACHE STRING
-    "C Compiler.")
-
   SET(CMAKE_CXX_FLAGS "" CACHE STRING
     "Flags used by the compiler during all build types."
     )
-
   SET(CMAKE_CXX_FLAGS_DEBUG "" CACHE STRING
     "Flags used by the compiler during debug builds."
     )
-
   SET(CMAKE_CXX_FLAGS_RELEASE "" CACHE STRING
     "Flags used by the compiler during release builds."
     )
 
+
+  IF(DEAL_II_WITH_CUDA)
+    SET(CMAKE_CUDA_COMPILER ${DEAL_II_CUDA_COMPILER} CACHE STRING
+      "CUDA Compiler.")
+    SET(CMAKE_CUDA_FLAGS "" CACHE STRING
+      "Flags used by the compiler during all build types."
+      )
+    SET(CMAKE_CUDA_FLAGS_DEBUG "" CACHE STRING
+      "Flags used by the compiler during debug builds."
+      )
+    SET(CMAKE_CUDA_FLAGS_RELEASE "" CACHE STRING
+      "Flags used by the compiler during release builds."
+      )
+  ENDIF()
+
   MARK_AS_ADVANCED(CMAKE_INSTALL_PREFIX)
 
 ENDMACRO()
-
index e368c7297f28a6596aa7dd4f61d0af0c032dd375..13657ade97d7bac8861df923c8077cd1008671e1 100644 (file)
@@ -9,10 +9,7 @@ FOREACH(_var DIFF_DIR NUMDIFF_DIR TEST_PICKUP_REGEX TEST_TIME_LIMIT)
 ENDFOREACH()
 
 IF(DEAL_II_WITH_CUDA)
-  PROJECT(blubb)
-  SET(CUDA_TOOLKIT_ROOT_DIR "${DEAL_II_CUDA_TOOLKIT_ROOT_DIR}")
-  FIND_PACKAGE(CUDA REQUIRED)
-  ENABLE_LANGUAGE(CUDA)
+  PROJECT(TESTSUITE CXX CUDA)
 ENDIF()
 
 #

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.