From 40a2d36d0b747a7147aeed238a0323f40b227cb2 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Tue, 24 Oct 2023 13:03:15 -0400 Subject: [PATCH] cuda >= 11.4 is required see #66 --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a17a29b68..96f81b8cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,10 +131,8 @@ bob_option(Omega_h_USE_CUDA "Whether to use CUDA" "${Kokkos_HAS_CUDA}") if (Omega_h_USE_CUDA) enable_language(CUDA) #check for versions of cuda/thrust that dont't work with omegah - if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 11.2 - AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 11.3) - message(FATAL_ERROR "CUDA 11.2 does not support Omega_h, " - "use an older or newer version") + if(CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 11.4) + message(FATAL_ERROR "CUDA >= 11.4 is required for Omega_h") endif() #check for bad combos if(Omega_h_CHECK_BOUNDS)