summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/plasma/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/plasma/package.py b/var/spack/repos/builtin/packages/plasma/package.py
index 9e36acd6e7..937d87de9e 100644
--- a/var/spack/repos/builtin/packages/plasma/package.py
+++ b/var/spack/repos/builtin/packages/plasma/package.py
@@ -40,6 +40,9 @@ 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")
+ # need a Python version to generate all precisions' code in repo
+ depends_on("python", when="@develop", type="build")
+
depends_on("lua", when="+lua")
depends_on("blas")
@@ -74,6 +77,10 @@ class Plasma(CMakePackage):
patch("protect_cmake_version.patch", when="@19.8.0:19.8.9")
patch("fix_cmake_include.patch", when="@19.8.0:19.8.9")
+ @when("@develop:")
+ def patch(self):
+ python("tools/generate_precisions.py")
+
@when("@18.9.0:")
def cmake_args(self):
options = list()