Check for cuda 9.0 or newer as we are supposed to.

9.7 was a local change to see whether deactivating CUDA for old
version works.

Completes #2488
This commit is contained in:
Markus Blatt 2020-03-23 11:06:30 +01:00
parent 53d636a3b1
commit 1f876e693b

View File

@ -48,7 +48,7 @@ if(NOT CMAKE_DISABLE_FIND_PACKAGE_CUDA AND
# Hence we call it unconditionally
# The WellContributions kernel uses __shfl_down_sync, which was introduced in CUDA 9.0
find_package(CUDA)
if(CUDA_VERSION VERSION_LESS "9.7")
if(CUDA_VERSION VERSION_LESS "9.0")
set(CUDA_FOUND OFF)
message(WARNING "Deactivating CUDA as we require version 9.0 or newer."
" Found only CUDA version ${CUDA_VERSION}.")