plasma: add code generation step for develop version (#31668)

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Piotr Luszczek 2022-08-03 07:30:24 -04:00 committed by GitHub
parent 5603b031de
commit a5d49ef77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()