mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
53d636a3b1
commit
1f876e693b
@ -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}.")
|
||||
|
Loading…
Reference in New Issue
Block a user