diff options
author | Richard Berger <rberger@lanl.gov> | 2024-04-15 10:34:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-15 16:34:30 +0000 |
commit | e72d4075bdb2e9c7c41a42605b4bdd95d842443a (patch) | |
tree | 31595a9cb6abdbc66b5701c8814108bbfa16975b | |
parent | f9f97bf22b6d96e8554c944b76b6aa1c55f50924 (diff) | |
download | spack-e72d4075bdb2e9c7c41a42605b4bdd95d842443a.tar.gz spack-e72d4075bdb2e9c7c41a42605b4bdd95d842443a.tar.bz2 spack-e72d4075bdb2e9c7c41a42605b4bdd95d842443a.tar.xz spack-e72d4075bdb2e9c7c41a42605b4bdd95d842443a.zip |
LAMMPS: add v20240207.1 (#43538)
Add workaround for undefined HIP_PATH in older versions
-rw-r--r-- | var/spack/repos/builtin/packages/lammps/package.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/lammps/package.py b/var/spack/repos/builtin/packages/lammps/package.py index 0a78196563..aac96002d2 100644 --- a/var/spack/repos/builtin/packages/lammps/package.py +++ b/var/spack/repos/builtin/packages/lammps/package.py @@ -31,12 +31,24 @@ class Lammps(CMakePackage, CudaPackage, ROCmPackage, PythonExtension): # marked deprecated=True # * patch releases older than a stable release should be marked deprecated=True version("develop", branch="develop") - version("20240207", sha256="d518f32de4eb2681f2543be63926411e72072dd7d67c1670c090b5baabed98ac") + version( + "20240207.1", sha256="3ba62c2a1ed463fceedf313a1c3ea2997994aa102379a8d35b525ea424f56776" + ) + version( + "20240207", + sha256="d518f32de4eb2681f2543be63926411e72072dd7d67c1670c090b5baabed98ac", + deprecated=True, + ) version("20231121", sha256="704d8a990874a425bcdfe0245faf13d712231ba23f014a3ebc27bc14398856f1") version( + "20230802.3", + sha256="6666e28cb90d3ff01cbbda6c81bdb85cf436bbb41604a87f2ab2fa559caa8510", + preferred=True, + ) + version( "20230802.2", sha256="3bcecabc9cad08d0a4e4d989b52d29c58505f7ead8ebacf43c9db8d9fd3d564a", - preferred=True, + deprecated=True, ) version( "20230802.1", @@ -358,6 +370,7 @@ class Lammps(CMakePackage, CudaPackage, ROCmPackage, PythonExtension): ) stable_versions = { + "20230802.3", "20230802.2", "20230802.1", "20230802", @@ -862,6 +875,11 @@ class Lammps(CMakePackage, CudaPackage, ROCmPackage, PythonExtension): if "+rocm" in spec: args.append(self.define("CMAKE_CXX_COMPILER", spec["hip"].hipcc)) + if "@:20231121" in spec: + if "^hip@:5.4" in spec: + args.append(self.define("HIP_PATH", f"{spec['hip'].prefix}/hip")) + elif "^hip@5.5:" in spec: + args.append(self.define("HIP_PATH", spec["hip"].prefix)) return args |