summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Luszczek <luszczek@icl.utk.edu>2018-11-28 17:59:05 -0500
committerSatish Balay <balay@mcs.anl.gov>2018-11-28 16:59:05 -0600
commit8375b5b5711f80d872afff5d858e877660b9deca (patch)
tree679a2688b35b57419ba8bc5e6883386f01b19796
parent62f1cf3678eac7947cb66b2d10ba16781e337e76 (diff)
downloadspack-8375b5b5711f80d872afff5d858e877660b9deca.tar.gz
spack-8375b5b5711f80d872afff5d858e877660b9deca.tar.bz2
spack-8375b5b5711f80d872afff5d858e877660b9deca.tar.xz
spack-8375b5b5711f80d872afff5d858e877660b9deca.zip
Add PLASMA version 18.11.0 and Lua variant (#9689)
* Add PLASMA 18.11.1 with optional Lua and test for headers
-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