summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2024-11-15 19:27:22 -0500
committerGitHub <noreply@github.com>2024-11-15 17:27:22 -0700
commitb90ac6441cfdf6425cb59551e7b0538899b69527 (patch)
tree4421c913c74774eae106608c011aba9ee20e273f /var
parent68b69aa9e3f6fdee943e72a3ed75c23de172142e (diff)
downloadspack-b90ac6441cfdf6425cb59551e7b0538899b69527.tar.gz
spack-b90ac6441cfdf6425cb59551e7b0538899b69527.tar.bz2
spack-b90ac6441cfdf6425cb59551e7b0538899b69527.tar.xz
spack-b90ac6441cfdf6425cb59551e7b0538899b69527.zip
celeritas: remove ancient versions and add CUDA package dependency (#47629)
* celeritas: remove deprecated versions through 0.3 * celeritas: deprecate old versions * celeritas: add c++20 option * Propagate vecgeom CUDA requirements * Remove outdated conflicts and format it
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/celeritas/package.py72
1 files changed, 14 insertions, 58 deletions
diff --git a/var/spack/repos/builtin/packages/celeritas/package.py b/var/spack/repos/builtin/packages/celeritas/package.py
index b83a96a9e9..b0e605ffc3 100644
--- a/var/spack/repos/builtin/packages/celeritas/package.py
+++ b/var/spack/repos/builtin/packages/celeritas/package.py
@@ -20,67 +20,35 @@ class Celeritas(CMakePackage, CudaPackage, ROCmPackage):
license("Apache-2.0")
version("0.5.0", sha256="4a8834224d96fd01897e5872ac109f60d91ef0bd7b63fac05a73dcdb61a5530e")
- version("0.4.4", sha256="8b5ae63aa2d50c2ecf48d752424e4a33c50c07d9f0f5ca5448246de3286fd836")
- version("0.4.3", sha256="b4f603dce1dc9c4894ea4c86f6574026ea8536714982e7dc6dff7472c925c892")
- version("0.4.2", sha256="eeca9705413f5e16e0fb81154e042600c8df125af7049912757feb01d43730e2")
- version("0.4.1", sha256="24e5c15eb9eec45f52d94a6719ae3505388b49d409cb7e26c875c70ac409bd2c")
version(
- "0.4.0",
- sha256="8b8eaef84641eeca0fc40321d358205fc9d51e3c6dc7bd1bf03218c1919c774e",
- deprecated=True,
- )
- version("0.3.2", sha256="65a33de2518716638375df259d9dfc4d68b821ba1110f56b24c823ef5c5df249")
- version(
- "0.3.1",
- sha256="0f1effab306856d66f5079e8cadcb63e8c1f8a79245b94bf44b89251b3fb0cf0",
- deprecated=True,
- )
- version(
- "0.3.0",
- sha256="f9620b6bcd8c9b5324ef215f8e44461f915c3fff47bf85ae442c9dafacaa79ac",
- deprecated=True,
- )
- version("0.2.2", sha256="ba5e341d636e00e3d7dbac13a2016b97014917489f46b8b387a2adf9d9563872")
- version(
- "0.2.1",
- sha256="b3717b43f70dd0da848139da4171ca7a887bb6777908845b6d953d47b1f4db41",
+ "0.4.4",
+ sha256="8b5ae63aa2d50c2ecf48d752424e4a33c50c07d9f0f5ca5448246de3286fd836",
deprecated=True,
)
version(
- "0.2.0",
- sha256="12af28fda0e482a9eba89781b4ead445cf6f170bc1b8d88cc814e49b1ec09e9f",
+ "0.4.3",
+ sha256="b4f603dce1dc9c4894ea4c86f6574026ea8536714982e7dc6dff7472c925c892",
deprecated=True,
)
- version("0.1.5", sha256="5e63b9ce7fcfe34a8938565b84453bce51fa6639d1ede13bb59d41de6431cef4")
version(
- "0.1.4",
- sha256="ea82a03fc750a2a805f87afd9ac944109dd7537edb5c0c370f93d332d4cd47db",
+ "0.4.2",
+ sha256="eeca9705413f5e16e0fb81154e042600c8df125af7049912757feb01d43730e2",
deprecated=True,
)
version(
- "0.1.3",
- sha256="992c49a48adba884fe3933c9624da5bf480ef0694809430ae98903f2c28cc881",
+ "0.4.1",
+ sha256="24e5c15eb9eec45f52d94a6719ae3505388b49d409cb7e26c875c70ac409bd2c",
deprecated=True,
)
version(
- "0.1.2",
- sha256="d123ea2e34267adba387d46bae8c9a1146a2e047f87f2ea5f823878c1684678d",
- deprecated=True,
- )
- version(
- "0.1.1",
- sha256="a1d58e29226e89a2330d69c40049d61e7c885cf991824e60ff8c9ccc95fc5ec6",
- deprecated=True,
- )
- version(
- "0.1.0",
- sha256="46692977b9b31d73662252cc122d7f016f94139475788bca7fdcb97279b93af8",
+ "0.4.0",
+ sha256="8b8eaef84641eeca0fc40321d358205fc9d51e3c6dc7bd1bf03218c1919c774e",
deprecated=True,
)
depends_on("cxx", type="build")
- _cxxstd_values = ("14", "17")
+ _cxxstd_values = ("17", "20")
# Note: cuda and rocm variants are defined by mixin classes
variant(
@@ -107,13 +75,10 @@ class Celeritas(CMakePackage, CudaPackage, ROCmPackage):
depends_on("nlohmann-json")
depends_on("geant4@10.5:", when="@0.4.2: +geant4")
depends_on("geant4@10.5:11.1", when="@0.3.1:0.4.1 +geant4")
- depends_on("geant4@10.6:11.1", when="@0.3.0 +geant4")
- depends_on("geant4@10.6:11.0", when="@0.2.1:0.2 +geant4")
- depends_on("geant4@10.7:11.0", when="@:0.2.0 +geant4")
depends_on("hepmc3", when="+hepmc3")
depends_on("root", when="+root")
depends_on("swig@4.1:", when="+swig")
- depends_on("vecgeom", when="+vecgeom")
+ depends_on("vecgeom@1.2.5:", when="+vecgeom")
depends_on("python", type="build")
depends_on("doxygen", type="build", when="+doc")
@@ -125,20 +90,11 @@ class Celeritas(CMakePackage, CudaPackage, ROCmPackage):
depends_on("root cxxstd=" + _std, when="+root cxxstd=" + _std)
depends_on("vecgeom cxxstd=" + _std, when="+vecgeom cxxstd=" + _std)
- depends_on("vecgeom@1.2.5:", when="+vecgeom @0.4:")
- depends_on("vecgeom +gdml@1.1.17:1", when="+vecgeom @:0.3")
- depends_on("vecgeom +cuda", when="+vecgeom +cuda")
+ for _arch in CudaPackage.cuda_arch_values:
+ depends_on("vecgeom+cuda cuda_arch=" + _arch, when="+vecgeom +cuda cuda_arch=" + _arch)
- conflicts("cxxstd=14", when="@0.3:")
conflicts("+rocm", when="+cuda", msg="AMD and NVIDIA accelerators are incompatible")
conflicts("+rocm", when="+vecgeom", msg="HIP support is only available with ORANGE")
- conflicts("^vecgeom+shared@1.2.0", when="+vecgeom +cuda")
-
- patch(
- "https://patch-diff.githubusercontent.com/raw/celeritas-project/celeritas/pull/830.patch?full_index=1",
- sha256="9ac1929a95170b497aaac76f62146f313e4b31aea7271acac354270550d0d685",
- when="@0.3.0 ^geant4@10",
- )
def cmake_args(self):
define = self.define