diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2024-03-02 23:57:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 08:57:24 +0100 |
commit | c5cca54c27a8efbe6ac4044955a79daa924c6b1f (patch) | |
tree | e2ce0612c35b0e76ee1a1953b3408745a778798a | |
parent | a9c1648db8531fb0d1d88206690c9cc8a8513a31 (diff) | |
download | spack-c5cca54c27a8efbe6ac4044955a79daa924c6b1f.tar.gz spack-c5cca54c27a8efbe6ac4044955a79daa924c6b1f.tar.bz2 spack-c5cca54c27a8efbe6ac4044955a79daa924c6b1f.tar.xz spack-c5cca54c27a8efbe6ac4044955a79daa924c6b1f.zip |
Fix mgard: OpenMP on AppleClang (#42933)
macOS AppleClang does not provide OpenMP by default with XCode.
Use LLVM's OpenMP to fix compile errors of mgard with OpenMP (default).
-rw-r--r-- | var/spack/repos/builtin/packages/mgard/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mgard/package.py b/var/spack/repos/builtin/packages/mgard/package.py index d0f9bd7a7a..e75f76ee00 100644 --- a/var/spack/repos/builtin/packages/mgard/package.py +++ b/var/spack/repos/builtin/packages/mgard/package.py @@ -55,6 +55,9 @@ class Mgard(CMakePackage, CudaPackage): depends_on("cmake@3.19:", type="build") depends_on("nvcomp@2.2.0:", when="@2022-11-18:+cuda") depends_on("nvcomp@2.0.2", when="@:2021-11-12+cuda") + with when("+openmp"): + depends_on("llvm-openmp", when="%apple-clang") + conflicts("cuda_arch=none", when="+cuda") conflicts( "~cuda", when="@2021-11-12", msg="without cuda MGARD@2021-11-12 has undefined symbols" |