Skip to content

Commit

Permalink
Add 5.1.0 to spack recipe (#248)
Browse files Browse the repository at this point in the history
* add 5.1.0

* Update package.py
  • Loading branch information
AlexanderRichert-NOAA authored Jul 19, 2024
1 parent 2344525 commit b4ad94a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Ip(CMakePackage):
maintainers("AlexanderRichert-NOAA", "edwardhartnett", "Hang-Lei-NOAA")

version("develop", branch="develop")
version("5.1.0", sha256="5279f11f4c12db68ece74cec392b7a2a6b5166bc505877289f34cc3149779619")
version("5.0.0", sha256="54b2987bd4f94adc1f7595d2a384e646019c22d163bcd30840a916a6abd7df71")
version("4.4.0", sha256="858d9201ce0bc4d16b83581ef94a4a0262f498ed1ea1b0535de2e575da7a8b8c")
version("4.3.0", sha256="799308a868dea889d2527d96a0405af7b376869581410fe4cff681205e9212b4")
Expand Down Expand Up @@ -65,7 +66,7 @@ class Ip(CMakePackage):
depends_on("sp precision=4", when="@4.1:4 precision=4")
depends_on("sp precision=d", when="@4.1:4 precision=d")
depends_on("sp precision=8", when="@4.1:4 precision=8")
depends_on("lapack", when="@develop")
depends_on("lapack", when="@5.1:")

def cmake_args(self):
args = [
Expand All @@ -89,7 +90,7 @@ def cmake_args(self):
if self.spec.satisfies("@5:"):
args.append(self.define_from_variant("BUILD_DEPRECATED", "deprecated"))

if self.spec.satisfies("@develop"):
if self.spec.satisfies("+lapack"):
# Use the LAPACK provider set by Spack even if the compiler supports native BLAS
bla_vendors = {"openblas": "OpenBLAS"}
lapack_provider = self.spec["lapack"].name
Expand Down

0 comments on commit b4ad94a

Please sign in to comment.