legion: bugfix for +cuda+cuda_unsupported_compiler (#45036)

When using a newer Clang for Kokkos than supported by a given CUDA version, the
CUDA compiler detection in Legion's CMake still needs to be passed
CMAKE_CUDA_FLAGS to pass the compiler check.
This commit is contained in:
Richard Berger 2024-07-08 01:25:09 -06:00 committed by GitHub
parent 065cbf79fc
commit 9b49576875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -394,6 +394,11 @@ def cmake_args(self):
# default is off.
options.append("-DLegion_USE_Kokkos=ON")
os.environ["KOKKOS_CXX_COMPILER"] = spec["kokkos"].kokkos_cxx
if spec.satisfies("+cuda+cuda_unsupported_compiler ^kokkos%clang +cuda"):
# Keep CMake CUDA compiler detection happy
options.append(
self.define("CMAKE_CUDA_FLAGS", "--allow-unsupported-compiler -std=c++17")
)
if spec.satisfies("+libdl"):
# default is on.