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:
parent
065cbf79fc
commit
9b49576875
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user