Skip to content

Commit

Permalink
Merge pull request #10799 from Rombur/drop_cuda_9
Browse files Browse the repository at this point in the history
Drop cuda 9
  • Loading branch information
kronbichler committed Aug 7, 2020
2 parents bb506f1 + ed21b7d commit 28dcc21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 4 additions & 5 deletions cmake/configure/configure_1_cuda.cmake
Expand Up @@ -57,16 +57,16 @@ MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
ENDIF()

#
# disable CUDA support older than 9.0:
# disable CUDA support older than 10.2:
#
IF(CUDA_VERSION_MAJOR VERSION_LESS 9.0)
IF(CUDA_VERSION VERSION_LESS 10.2)
MESSAGE(FATAL_ERROR "\n"
"deal.II requires CUDA version 9 or newer."
"deal.II requires CUDA version 10.2 or newer."
)
ENDIF()

#
# CUDA Toolkit 9 and CUDA Toolkit 10 are incompatible with C++17.
# CUDA Toolkit 10 is incompatible with C++17.
# Make sure that deal.II is configured appropriately
#
MACRO(_cuda_ensure_feature_off _version _cpp_version_bad _cpp_version_good)
Expand All @@ -84,7 +84,6 @@ MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
ENDIF()
ENDMACRO()

_cuda_ensure_feature_off(9 17 14)
_cuda_ensure_feature_off(10 17 14)

IF("${DEAL_II_CUDA_FLAGS_SAVED}" MATCHES "-arch[ ]*sm_([0-9]*)")
Expand Down
4 changes: 2 additions & 2 deletions doc/external-libs/cuda.html
Expand Up @@ -20,7 +20,7 @@ <h1>Installing deal.II with CUDA</h1>
capabilities of newer ones. In order to use CUDA with deal.II, you will
need your GPU to have compute capability 3.5 or higher. Independently
from the GPU itself, you also need a version of CUDA recent enough.
deal.II supports CUDA 9.0 and higher. Finally to be able to configure
deal.II supports CUDA 10.2 and higher. Finally to be able to configure
deal.II, you will need CMake 3.9 or higher.
</p>

Expand All @@ -31,7 +31,7 @@ <h1>Installing deal.II with CUDA</h1>
-DDEAL_II_WITH_CUDA=ON
</pre>
Depending on you system, this may be enough to get CUDA to work. If
you are using CUDA 9 or CUDA 10, you will have to make sure that
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:
Expand Down
3 changes: 3 additions & 0 deletions doc/news/changes/incompatibilities/20200805Turcksin
@@ -0,0 +1,3 @@
Removed: CUDA 9, 10.0, and 10.1 are not supported anymore.
<br>
(Bruno Turcksin, 2020/08/05)

0 comments on commit 28dcc21

Please sign in to comment.