From 2e373f7fcada8a49e077f4ae268cc9c12055e0e7 Mon Sep 17 00:00:00 2001
From: Daniel Arndt
- To compile and run CUDA code, you need a CUDA-enabled GPU, appropriate
+ To compile and run CUDA code, you need to use an external Kokkos
+ installation that has been configured with CUDA support.
+ This, in turn, requires a CUDA-enabled GPU, appropriate
drivers, the CUDA toolkit, and the nvcc compiler. Unlike other libraries,
you need special hardware and compiler to enable CUDA. Because the
hardware is always evolving, older GPUs do not support all the
@@ -30,23 +32,7 @@
-DDEAL_II_WITH_CUDA=ON
- Depending on you system, this may be enough to get CUDA to work. If
- you are using CUDA 10.2, you will have to make sure that
- C++17 is disabled.
- By default, we try to detect the compute capability of your device
- but you can easily set your own CUDA flags:
- Installing deal.II with CUDA
-
- -DDEAL_II_CUDA_FLAGS="-arch=sm_60"
-
- -DDEAL_II_CUDA_FLAGS_DEBUG
and
- -DDEAL_II_CUDA_FLAGS_RELEASE
are also available if you want
- a finer control on the CUDA flags. The CUDA compiler and the
- CUDA toolkit root directory can be set using
- -DDEAL_II_CUDA_COMPILER
and
- -DDEAL_II_CUDA_TOOLKIT_ROOT_DIR
.
- Finally, the CUDA host compiler is the same as the C++ compiler
- by default, but can be changed using CUDA flags as well.
+ CUDA versions prior to 11.0 don't support C++17 or higher.
diff --git a/doc/users/cmake_user.html b/doc/users/cmake_user.html
index f526394afd..e96478e142 100644
--- a/doc/users/cmake_user.html
+++ b/doc/users/cmake_user.html
@@ -480,9 +480,6 @@ source file you have to touch a CMakeLists.txt
file or to run
href="#dealiiconfig">deal.IIConfig.cmake
for
details):
-DEAL_II_CUDA_FLAGS -DEAL_II_CUDA_FLAGS_DEBUG -DEAL_II_CUDA_FLAGS_RELEASE DEAL_II_CXX_FLAGS DEAL_II_CXX_FLAGS_DEBUG DEAL_II_CXX_FLAGS_RELEASE @@ -828,17 +825,6 @@ DEAL_II_LIBRARIES_DEBUG - a list of the full link interface for the debug conf DEAL_II_LIBRARIES_RELEASE - a list of the full link interface for the release configuration DEAL_II_LIBRARIES - full list of libraries with "debug" and "optimized" keywords -# -# Information about CUDA configuration -# - -DEAL_II_CUDA_TOOLKIT_ROOT_DIR - CUDA toolkit directory -DEAL_II_CUDA_COMPILER - the CUDA compiler used to compiler deal.II - -DEAL_II_CUDA_FLAGS - compile flags for all CUDA configuration -DEAL_II_CUDA_FLAGS_DEBUG - _additional_ compile flags for the CUDA debug configuration -DEAL_II_CUDA_FLAGS_RELEASE - _additional_ compile flags for the CUDA release configuration - # # Information about library targets # -- 2.39.5