diff options
author | Richard Berger <rberger@lanl.gov> | 2024-07-08 01:25:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-08 09:25:09 +0200 |
commit | 9b49576875d099ba46d6e21c4f64e64482c24b71 (patch) | |
tree | f929e5d17691a379166c6dadfc3fae49be0b0176 /var | |
parent | 065cbf79fcc00f96f1580a368383e7c01b7ac253 (diff) | |
download | spack-9b49576875d099ba46d6e21c4f64e64482c24b71.tar.gz spack-9b49576875d099ba46d6e21c4f64e64482c24b71.tar.bz2 spack-9b49576875d099ba46d6e21c4f64e64482c24b71.tar.xz spack-9b49576875d099ba46d6e21c4f64e64482c24b71.zip |
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.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/legion/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py index a9393b0f0f..54e21952c0 100644 --- a/var/spack/repos/builtin/packages/legion/package.py +++ b/var/spack/repos/builtin/packages/legion/package.py @@ -394,6 +394,11 @@ class Legion(CMakePackage, ROCmPackage): # 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. |