mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix CUDA version check to allow versions 9.0 or newer.
This commit is contained in:
parent
c0a82ff335
commit
74051ebf01
@ -47,7 +47,12 @@ if(NOT CMAKE_DISABLE_FIND_PACKAGE_CUDA AND
|
||||
# only easy way to determine the cublas and cusparse libraries.
|
||||
# Hence we call it unconditionally
|
||||
# The WellContributions kernel uses __shfl_down_sync, which was introduced in CUDA 9.0
|
||||
find_package(CUDA 9.0)
|
||||
find_package(CUDA)
|
||||
if(CUDA_VERSION VERSION_LESS "9.7")
|
||||
set(CUDA_FOUND OFF)
|
||||
message(WARNING "Deactivating CUDA as we require version 9.0 or newer."
|
||||
" Found only CUDA version ${CUDA_VERSION}.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CUDA_FOUND)
|
||||
|
Loading…
Reference in New Issue
Block a user