summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/plasma/package.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/plasma/package.py b/var/spack/repos/builtin/packages/plasma/package.py
index 54ef75c207..ab809a8518 100644
--- a/var/spack/repos/builtin/packages/plasma/package.py
+++ b/var/spack/repos/builtin/packages/plasma/package.py
@@ -16,10 +16,12 @@ class Plasma(CMakePackage):
problems, and singular value problems."""
homepage = "https://bitbucket.org/icl/plasma/"
- url = "https://bitbucket.org/icl/plasma/downloads/plasma-18.10.0.tar.gz"
+ url = "https://bitbucket.org/icl/plasma/downloads/plasma-18.11.0.tar.gz"
hg = "https://luszczek@bitbucket.org/icl/plasma"
version("develop", hg=hg)
+ version("18.11.1", sha256="0581cc8b1188932fd9c29bd258ffe2dc8fb26b1530c5dc3d91f8de369e44edbc")
+ version("18.11.0", sha256="36501488be5b4b2b973524824e1afd27779d37addfeeb34c1871ba753b6c06bf")
version("18.10.0", sha256="93dceae93f57a2fbd79b85d2fbf7907d1d32e158b8d1d93892d9ff3df9963210")
version("18.9.0", sha256="753eae28ea48986a2cc7b8204d6eef646584541e59d42c3c94fa9879116b0774")
version("17.1",
@@ -28,6 +30,10 @@ class Plasma(CMakePackage):
variant("shared", default=True,
description="Build shared library (disables static library)")
+ variant("lua", default=False,
+ description="Build Lua support for tuning tile sizes")
+
+ depends_on("lua", when="+lua")
depends_on("blas")
depends_on("lapack")
@@ -74,6 +80,18 @@ class Plasma(CMakePackage):
('ON' if ('+shared' in self.spec) else 'OFF')
]
+ for package, provider in (
+ ("openblas", "openblas"),
+ ("intel-mkl", "mkl"),
+ ("netlib-lapack", "netlib"),
+ ):
+ if package in self.spec:
+ for lib in ("CBLAS", "LAPACKE"):
+ options.append("-D%s_PROVIDER=%s" % (lib, provider))
+
+ if "lua" in self.spec:
+ options.append("-DPLASMA_DETECT_LUA=TRUE")
+
return options
# Before 18.9.0 it was an Makefile package