Skip to content

Commit

Permalink
cuda >= 11.4 is required
Browse files Browse the repository at this point in the history
see #66
  • Loading branch information
cwsmith committed Oct 24, 2023
1 parent 46c6d50 commit 40a2d36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40a2d36

Please sign in to comment.