summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoralvaro-sch <49589619+alvaro-sch@users.noreply.github.com>2024-11-18 18:34:38 -0300
committerGitHub <noreply@github.com>2024-11-18 13:34:38 -0800
commit43c1a5e0ecbe25384ac0ddbfa0812499286ea636 (patch)
treeb772121601550b9b45619f2763bed5287eb317fa /var
parent8feb506b3a8d78d6b9f4df3f473955c10d0b5e71 (diff)
downloadspack-43c1a5e0ecbe25384ac0ddbfa0812499286ea636.tar.gz
spack-43c1a5e0ecbe25384ac0ddbfa0812499286ea636.tar.bz2
spack-43c1a5e0ecbe25384ac0ddbfa0812499286ea636.tar.xz
spack-43c1a5e0ecbe25384ac0ddbfa0812499286ea636.zip
orca: add v6.0.1, avx2-6.0.1 (#47489)
* orca: add 6.0.1 versions * orca: checksum fix for avx2-6.0.1 * orca: fix version string for avx2-6.0.1 * orca: checksum fix for 6.0.1
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/orca/package.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/orca/package.py b/var/spack/repos/builtin/packages/orca/package.py
index 00021a970d..80e3463703 100644
--- a/var/spack/repos/builtin/packages/orca/package.py
+++ b/var/spack/repos/builtin/packages/orca/package.py
@@ -24,6 +24,10 @@ class Orca(Package):
license("LGPL-2.1-or-later")
version(
+ "avx2-6.0.1", sha256="f31f98256a0c6727b6ddfe50aa3ac64c45549981138d670a57e90114b4b9c9d2"
+ )
+ version("6.0.1", sha256="5e9b49588375e0ce5bc32767127cc725f5425917804042cdecdfd5c6b965ef61")
+ version(
"avx2-6.0.0", sha256="02c21294efe7b1b721e26cb90f98ee15ad682d02807201b7d217dfe67905a2fd"
)
version("6.0.0", sha256="219bd1deb6d64a63cb72471926cb81665cbbcdec19f9c9549761be67d49a29c6")
@@ -43,7 +47,9 @@ class Orca(Package):
"5.0.3": "4.1.2",
"5.0.4": "4.1.2",
"6.0.0": "4.1.6",
+ "6.0.1": "4.1.6",
"avx2-6.0.0": "4.1.6",
+ "avx2-6.0.1": "4.1.6",
}
for orca_version, openmpi_version in openmpi_versions.items():
depends_on(
@@ -54,11 +60,17 @@ class Orca(Package):
openmpi_version = self.openmpi_versions[version.string].replace(".", "")
if openmpi_version == "412":
openmpi_version = "411"
+
ver_parts = version.string.split("-")
ver_underscored = ver_parts[-1].replace(".", "_")
features = ver_parts[:-1] + ["shared"]
feature_text = "_".join(features)
- return f"file://{os.getcwd()}/orca_{ver_underscored}_linux_x86-64_{feature_text}_openmpi{openmpi_version}.tar.xz"
+
+ url = f"file://{os.getcwd()}/orca_{ver_underscored}_linux_x86-64_{feature_text}_openmpi{openmpi_version}.tar.xz"
+ if self.spec.satisfies("@=avx2-6.0.1"):
+ url = f"file://{os.getcwd()}/orca_{ver_underscored}_linux_x86-64_shared_openmpi{openmpi_version}_avx2.tar.xz"
+
+ return url
def install(self, spec, prefix):
mkdirp(prefix.bin)