diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2023-08-16 10:49:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 11:49:32 -0600 |
commit | 4c7748e9544764ad8a78a9a42c9056f94e20dc2e (patch) | |
tree | b4f1291b3bc0698cd1d99bb11d83f18035c77023 /var | |
parent | 86485dea143f3a749b01fc5c5679be4e3236c284 (diff) | |
download | spack-4c7748e9544764ad8a78a9a42c9056f94e20dc2e.tar.gz spack-4c7748e9544764ad8a78a9a42c9056f94e20dc2e.tar.bz2 spack-4c7748e9544764ad8a78a9a42c9056f94e20dc2e.tar.xz spack-4c7748e9544764ad8a78a9a42c9056f94e20dc2e.zip |
amrex+sycl: restructure constraint on %oneapi (#39451)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/amrex/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py index e414155446..86e48df9f2 100644 --- a/var/spack/repos/builtin/packages/amrex/package.py +++ b/var/spack/repos/builtin/packages/amrex/package.py @@ -159,7 +159,6 @@ class Amrex(CMakePackage, CudaPackage, ROCmPackage): depends_on("hypre@2.19.0:", type="link", when="@21.03: ~cuda +hypre") depends_on("hypre@2.20.0:", type="link", when="@21.03: +cuda +hypre") depends_on("petsc", type="link", when="+petsc") - depends_on("intel-oneapi-compilers@2023.0.0:", type="build", when="@23.01: +sycl") depends_on("intel-oneapi-mkl", type=("build", "link"), when="+sycl") # these versions of gcc have lambda function issues @@ -249,6 +248,8 @@ class Amrex(CMakePackage, CudaPackage, ROCmPackage): # @when("@20.12:,develop") def cmake_args(self): + if self.spec.satisfies("@23.01: +sycl") and not self.spec.satisfies("%oneapi@2023.0.0:"): + raise InstallError("amrex +sycl requires %oneapi@2023.0.0:") args = [ "-DUSE_XSDK_DEFAULTS=ON", self.define_from_variant("AMReX_SPACEDIM", "dimensions"), |