From 6dbb56ba3672a10d6283b4814ca35368ee0e081e Mon Sep 17 00:00:00 2001 From: Alberto Invernizzi <9337627+albestro@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:11:47 +0100 Subject: 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 --- var/spack/repos/builtin/packages/nvpl-lapack/package.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'var') 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") -- cgit v1.2.3-70-g09d2