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)
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]*)")
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>
-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: