nvpl-lapack: fix versioning and add missing dependency (#42599)

* fix wrong versioning
use doc version and not the one extrapolated from the path (i.e. 0.2.0.1)

* nvpl-lapack requires nvpl-blas
propagate matching variants to nvpl-blas dependency

Co-authored-by: albestro <albestro@users.noreply.github.com>
This commit is contained in:
Alberto Invernizzi 2024-02-12 09:11:47 +01:00 committed by GitHub
parent 2e5bdd2679
commit 6dbb56ba36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,21 +22,29 @@ class NvplLapack(Package):
license("UNKNOWN")
version("0.1.0", sha256="7054f775b18916ee662c94ad7682ace53debbe8ee36fa926000fe412961edb0b")
version("0.2.0", sha256="7054f775b18916ee662c94ad7682ace53debbe8ee36fa926000fe412961edb0b")
provides("lapack")
variant("ilp64", default=False, description="Force 64-bit Fortran native integers")
threadings = ("openmp", "none")
variant(
"threads",
default="none",
description="Multithreading support",
values=("openmp", "none"),
values=threadings,
multi=False,
)
requires("target=armv8.2a:", msg="Any CPU with Arm-v8.2a+ microarch")
# propagate variants for depends_on("nvpl-blas")
depends_on("nvpl-blas +ilp64", when="+ilp64")
depends_on("nvpl-blas ~ilp64", when="~ilp64")
for threads in threadings:
depends_on(f"nvpl-blas threads={threads}", when=f"threads={threads}")
conflicts("%gcc@:7")
conflicts("%clang@:13")