summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Prokopenko <prokopenkoav@ornl.gov>2024-11-04 04:29:32 -0500
committerGitHub <noreply@github.com>2024-11-04 10:29:32 +0100
commit18936771ffad57749d012a6c55e6d9c560d40069 (patch)
treef7e25f02f94b47fd2114cb7c7301f17a7595219a
parent9a94ea7dfeda457b4712be71a645140c7488d869 (diff)
downloadspack-18936771ffad57749d012a6c55e6d9c560d40069.tar.gz
spack-18936771ffad57749d012a6c55e6d9c560d40069.tar.bz2
spack-18936771ffad57749d012a6c55e6d9c560d40069.tar.xz
spack-18936771ffad57749d012a6c55e6d9c560d40069.zip
arborx: remove Trilinos dependency for @1.6: (#47305)
-rw-r--r--var/spack/repos/builtin/packages/arborx/package.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/arborx/package.py b/var/spack/repos/builtin/packages/arborx/package.py
index b5fc91a175..da7b9e857c 100644
--- a/var/spack/repos/builtin/packages/arborx/package.py
+++ b/var/spack/repos/builtin/packages/arborx/package.py
@@ -63,7 +63,7 @@ class Arborx(CMakePackage, CudaPackage, ROCmPackage):
for backend in kokkos_backends:
deflt, descr = kokkos_backends[backend]
variant(backend.lower(), default=deflt, description=descr)
- variant("trilinos", default=False, description="use Kokkos from Trilinos")
+ variant("trilinos", default=False, when="@:1.5", description="use Kokkos from Trilinos")
depends_on("cmake@3.12:", type="build")
depends_on("cmake@3.16:", type="build", when="@1.0:")
@@ -77,8 +77,8 @@ class Arborx(CMakePackage, CudaPackage, ROCmPackage):
depends_on("kokkos@3.6.00:", when="@1.3~trilinos")
depends_on("kokkos@3.7.01:", when="@1.4:1.4.1~trilinos")
depends_on("kokkos@4.0.00:", when="@1.5~trilinos")
- depends_on("kokkos@4.1.00:", when="@1.6~trilinos")
- depends_on("kokkos@4.2.00:", when="@1.7:~trilinos")
+ depends_on("kokkos@4.1.00:", when="@1.6")
+ depends_on("kokkos@4.2.00:", when="@1.7:")
for backend in kokkos_backends:
depends_on("kokkos+%s" % backend.lower(), when="~trilinos+%s" % backend.lower())
@@ -96,8 +96,9 @@ class Arborx(CMakePackage, CudaPackage, ROCmPackage):
conflicts("^kokkos", when="+trilinos")
depends_on("kokkos+cuda_lambda", when="~trilinos+cuda")
- # Trilinos/Kokkos
+ # Trilinos with internal Kokkos
# Notes:
+ # - starting with Trilinos 14.4, Trilinos' spack package uses external Kokkos
# - current version of Trilinos package does not allow disabling Serial
# - current version of Trilinos package does not allow enabling CUDA
depends_on("trilinos+kokkos", when="+trilinos")
@@ -106,18 +107,16 @@ class Arborx(CMakePackage, CudaPackage, ROCmPackage):
depends_on("trilinos@13.4.0:", when="@1.3+trilinos")
depends_on("trilinos@14.0.0:", when="@1.4:1.4.1+trilinos")
depends_on("trilinos@14.2.0:", when="@1.5+trilinos")
- depends_on("trilinos@14.4.0:", when="@1.6+trilinos")
- depends_on("trilinos@15.1.0:", when="@1.7:+trilinos")
patch("trilinos14.0-kokkos-major-version.patch", when="@1.4+trilinos ^trilinos@14.0.0")
conflicts("~serial", when="+trilinos")
def cmake_args(self):
spec = self.spec
- if "~trilinos" in spec:
- kokkos_spec = spec["kokkos"]
- else:
+ if "+trilinos" in spec:
kokkos_spec = spec["trilinos"]
+ else:
+ kokkos_spec = spec["kokkos"]
options = [
f"-DKokkos_ROOT={kokkos_spec.prefix}",