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).
This commit is contained in:
Axel Huebl 2024-03-02 23:57:24 -08:00 committed by Massimiliano Culpo
parent 4a84039795
commit a6ef73f7f2
No known key found for this signature in database
GPG key ID: 3E52BB992233066C

View file

@ -53,6 +53,9 @@ class Mgard(CMakePackage, CudaPackage):
depends_on("cmake@3.19:", type="build") depends_on("cmake@3.19:", type="build")
depends_on("nvcomp@2.2.0:", when="@2022-11-18:+cuda") depends_on("nvcomp@2.2.0:", when="@2022-11-18:+cuda")
depends_on("nvcomp@2.0.2", when="@:2021-11-12+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_arch=none", when="+cuda")
conflicts( conflicts(
"~cuda", when="@2021-11-12", msg="without cuda MGARD@2021-11-12 has undefined symbols" "~cuda", when="@2021-11-12", msg="without cuda MGARD@2021-11-12 has undefined symbols"