diff options
author | Rocco Meli <rocco.meli@cscs.ch> | 2023-01-25 12:01:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 12:01:46 +0100 |
commit | 047a481e482fba8cdddabafd1ff2f2b621663678 (patch) | |
tree | 23212db4f339878ebb1137ff3e8cf8f67b3c40d3 /var | |
parent | 051abfb894d41ef488545710a75ea06d8a2013b0 (diff) | |
download | spack-047a481e482fba8cdddabafd1ff2f2b621663678.tar.gz spack-047a481e482fba8cdddabafd1ff2f2b621663678.tar.bz2 spack-047a481e482fba8cdddabafd1ff2f2b621663678.tar.xz spack-047a481e482fba8cdddabafd1ff2f2b621663678.zip |
Update COSTA package (#35137)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/costa/package.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/costa/package.py b/var/spack/repos/builtin/packages/costa/package.py index 9f17d4fec8..2d31944682 100644 --- a/var/spack/repos/builtin/packages/costa/package.py +++ b/var/spack/repos/builtin/packages/costa/package.py @@ -13,14 +13,18 @@ class Costa(CMakePackage): Based on the paper: https://arxiv.org/abs/2106.06601 """ - maintainers = ["haampie", "kabicm"] + maintainers = [ + "haampie", + "kabicm", + "RMeli", + ] homepage = "https://github.com/eth-cscs/COSTA" - url = "https://github.com/eth-cscs/COSTA/releases/download/v2.0/COSTA-v2.0.tar.gz" git = "https://github.com/eth-cscs/COSTA.git" # note: The default archives produced with github do not have the archives # of the submodules. version("master", branch="master", submodules=True) + version("2.1", sha256="c1e86452415083f7470b292d93ec60708b7c8dbafc2bac383636bb4b28135866") version("2.0", sha256="de250197f31f7d23226c6956a687c3ff46fb0ff6c621a932428236c3f7925fe4") variant("scalapack", default=False, description="Build with ScaLAPACK API") @@ -31,9 +35,14 @@ class Costa(CMakePackage): depends_on("scalapack", when="+scalapack") def url_for_version(self, version): - return "https://github.com/eth-cscs/COSTA/releases/download/v{0}/COSTA-v{1}.tar.gz".format( - version, version - ) + if version == Version("2.0"): + return "https://github.com/eth-cscs/COSTA/releases/download/v{0}/COSTA-v{1}.tar.gz".format( + version, version + ) + else: + return "https://github.com/eth-cscs/COSTA/archive/refs/tags/v{0}.tar.gz".format( + version + ) def setup_build_environment(self, env): return |