Skip to content

Commit 5149b0d

Browse files
authored
Enforce Minimum CUDA version in CMake (#636)
1 parent 1fdbdbc commit 5149b0d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

legate_core_cpp.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,12 @@ if(Legion_USE_CUDA)
135135
set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA "-isystem ")
136136
# Find the CUDAToolkit
137137
rapids_find_package(
138-
CUDAToolkit REQUIRED
138+
# Min version of CUDA is 11.8, but we want CMake to prefer the highest version
139+
# possible. It seems that it only does that if you give it a range...
140+
#
141+
# So in 100 years time, if we ever get to CUDA version 100000000, someone must
142+
# remember to add another 9 below.
143+
CUDAToolkit 11.8...99999999.99 REQUIRED
139144
BUILD_EXPORT_SET legate-core-exports
140145
INSTALL_EXPORT_SET legate-core-exports
141146
)

0 commit comments

Comments
 (0)