]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update documentation for deal.II+Cuda
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 25 Nov 2022 15:27:20 +0000 (10:27 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 25 Nov 2022 15:27:20 +0000 (10:27 -0500)
.github/workflows/linux.yml
doc/doxygen/options.dox.in
doc/external-libs/cuda.html
doc/users/cmake_user.html

index ae97d53acbcf5fed5986188f8fa690e4985f7f7f..3d9dbe4f698e7ae4968efcbfdb52186b03b28c82 100644 (file)
@@ -173,7 +173,6 @@ jobs:
       run: |
         cmake -D CMAKE_BUILD_TYPE=Debug \
               -D CMAKE_CXX_COMPILER=${GITHUB_WORKSPACE}/kokkos/bin/nvcc_wrapper \
-              -D DEAL_II_CUDA_FLAGS='-arch=sm_70' \
               -D DEAL_II_CXX_FLAGS='-Werror -Wno-non-template-friend' \
               -D DEAL_II_EARLY_DEPRECATIONS=ON \
               -D DEAL_II_WITH_CUDA="ON" \
index 701098077d79c00030221ce73d27c4a719ac29b3..f463ad285eabba71365730148c6a2c07657e57e5 100644 (file)
@@ -181,7 +181,7 @@ PREDEFINED             = DOXYGEN=1 \
                          DEAL_II_ENABLE_EXTRA_DIAGNOSTICS= \
                          DEAL_II_DISABLE_EXTRA_DIAGNOSTICS= \
                          DEAL_II_DEPRECATED= \
-                         DEAL_II_CUDA_HOST_DEV= \
+                         DEAL_II_HOST_DEV= \
                          DEAL_II_ALWAYS_INLINE= \
                          __device__= \
                          DEAL_II_WITH_ADOLC=1 \
index a421a17aed765b82fb09d436cd4c581cc4654c07..0cc6ca9f98aee47600e9feb62476581ee10ed62d 100644 (file)
@@ -13,7 +13,9 @@
     <h1>Installing deal.II with CUDA</h1>
 
     <p>
-      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
 
         -DDEAL_II_WITH_CUDA=ON
       </pre>
-      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:
-      <pre>
-
-        -DDEAL_II_CUDA_FLAGS="-arch=sm_60"
-      </pre>
-      <code>-DDEAL_II_CUDA_FLAGS_DEBUG</code> and
-      <code>-DDEAL_II_CUDA_FLAGS_RELEASE</code> 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
-      <code>-DDEAL_II_CUDA_COMPILER</code> and
-      <code>-DDEAL_II_CUDA_TOOLKIT_ROOT_DIR</code>.
-      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.
     </p>
 
     <p>
index f526394afd0207ffc9991b3ba4f616cf7edb3307..e96478e142969e18067201a36cf511688e07b204 100644 (file)
@@ -480,9 +480,6 @@ source file you have to touch a <code>CMakeLists.txt</code> file or to run
     href="#dealiiconfig"><code>deal.IIConfig.cmake</code></a> for
   details):
 <pre class="cmake">
-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
 #

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.