plasma: update to use oneapi packages (#49433)

Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Massimiliano Culpo 2025-03-13 03:26:11 +01:00 committed by GitHub
parent d610ff6cb1
commit fe00c13afa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,17 +72,9 @@ class Plasma(CMakePackage):
conflicts("^veclibfort")
# only GCC 4.9+ and higher have sufficient support for OpenMP 4+ tasks+deps
conflicts("%gcc@:4.8", when="@:17.1")
requires("%gcc@4.9:", when="@17.1:")
# only GCC 6.0+ and higher have for OpenMP 4+ Clause "priority"
conflicts("%gcc@:5", when="@17.2:")
conflicts("%cce")
conflicts("%apple-clang")
conflicts("%clang")
conflicts("%intel")
conflicts("%nag")
conflicts("%xl")
conflicts("%xl_r")
requires("%gcc@6:", when="@17.2:")
patch("remove_absolute_mkl_include.patch", when="@17.1")
patch("protect_cmake_version.patch", when="@19.8.0:19.8.9")
@ -112,7 +104,7 @@ def cmake_args(self):
for package, provider in (
("openblas", "openblas"),
("intel-mkl", "mkl"),
("intel-oneapi-mkl", "mkl"),
("netlib-lapack", "netlib"),
):
if package in self.spec:
@ -140,7 +132,7 @@ def edit(self, pkg, spec, prefix):
make_inc = FileFilter("make.inc")
if not spec.satisfies("^intel-mkl"):
if not spec.satisfies("^[virtuals=blas,lapack] intel-oneapi-mkl"):
make_inc.filter("-DPLASMA_WITH_MKL", "") # not using MKL
make_inc.filter("LIBS *= *.*", "LIBS = " + self.spec["blas"].libs.ld_flags + " -lm")