From 4d8978940fad144367332caa8b8f2b962babe8a3 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Wed, 5 Aug 2020 21:56:56 +0000 Subject: [PATCH] Drop support for CUDA 9.0, 10.0, and 10.1 --- cmake/configure/configure_1_cuda.cmake | 9 ++++----- doc/external-libs/cuda.html | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cmake/configure/configure_1_cuda.cmake b/cmake/configure/configure_1_cuda.cmake index 788ef1c6ec..3dcff92305 100644 --- a/cmake/configure/configure_1_cuda.cmake +++ b/cmake/configure/configure_1_cuda.cmake @@ -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) @@ -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]*)") diff --git a/doc/external-libs/cuda.html b/doc/external-libs/cuda.html index 1907e9d638..76fc178003 100644 --- a/doc/external-libs/cuda.html +++ b/doc/external-libs/cuda.html @@ -20,7 +20,7 @@ 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.

@@ -31,7 +31,7 @@ -DDEAL_II_WITH_CUDA=ON 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: -- 2.39.5