amrex+sycl: restructure constraint on %oneapi (#39451)
This commit is contained in:
parent
86485dea14
commit
4c7748e954
2 changed files with 3 additions and 2 deletions
|
@ -224,7 +224,7 @@ spack:
|
||||||
|
|
||||||
# GPU
|
# GPU
|
||||||
- aml +ze
|
- aml +ze
|
||||||
- amrex +sycl dimensions=3
|
- amrex +sycl
|
||||||
- arborx +sycl ^kokkos +sycl +openmp cxxstd=17 +tests +examples
|
- arborx +sycl ^kokkos +sycl +openmp cxxstd=17 +tests +examples
|
||||||
- cabana +sycl ^kokkos +sycl +openmp cxxstd=17 +tests +examples
|
- cabana +sycl ^kokkos +sycl +openmp cxxstd=17 +tests +examples
|
||||||
- kokkos +sycl +openmp cxxstd=17 +tests +examples
|
- kokkos +sycl +openmp cxxstd=17 +tests +examples
|
||||||
|
|
|
@ -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.19.0:", type="link", when="@21.03: ~cuda +hypre")
|
||||||
depends_on("hypre@2.20.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("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")
|
depends_on("intel-oneapi-mkl", type=("build", "link"), when="+sycl")
|
||||||
|
|
||||||
# these versions of gcc have lambda function issues
|
# these versions of gcc have lambda function issues
|
||||||
|
@ -249,6 +248,8 @@ def get_cuda_arch_string(self, values):
|
||||||
#
|
#
|
||||||
@when("@20.12:,develop")
|
@when("@20.12:,develop")
|
||||||
def cmake_args(self):
|
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 = [
|
args = [
|
||||||
"-DUSE_XSDK_DEFAULTS=ON",
|
"-DUSE_XSDK_DEFAULTS=ON",
|
||||||
self.define_from_variant("AMReX_SPACEDIM", "dimensions"),
|
self.define_from_variant("AMReX_SPACEDIM", "dimensions"),
|
||||||
|
|
Loading…
Reference in a new issue