diff options
author | Alberto Invernizzi <9337627+albestro@users.noreply.github.com> | 2024-02-12 09:11:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 09:11:47 +0100 |
commit | 6dbb56ba3672a10d6283b4814ca35368ee0e081e (patch) | |
tree | ba33f125abee9aedaa168f4aab6e3da8a299f7a9 /var | |
parent | 2e5bdd26794d8f10aa791798500c8303c4110232 (diff) | |
download | spack-6dbb56ba3672a10d6283b4814ca35368ee0e081e.tar.gz spack-6dbb56ba3672a10d6283b4814ca35368ee0e081e.tar.bz2 spack-6dbb56ba3672a10d6283b4814ca35368ee0e081e.tar.xz spack-6dbb56ba3672a10d6283b4814ca35368ee0e081e.zip |
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>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/nvpl-lapack/package.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/nvpl-lapack/package.py b/var/spack/repos/builtin/packages/nvpl-lapack/package.py index 3a2aa064e8..20bc6d16d7 100644 --- a/var/spack/repos/builtin/packages/nvpl-lapack/package.py +++ b/var/spack/repos/builtin/packages/nvpl-lapack/package.py @@ -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") |