openblas: %intel@2021: conflict with avx512 (#44883)

This commit is contained in:
Alex Richert 2024-09-26 22:12:36 -07:00 committed by GitHub
parent 1b01680be1
commit 29d85ba552
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,6 +264,8 @@ class Openblas(CMakePackage, MakefilePackage):
msg="Visual Studio does not support OpenBLAS dynamic dispatch features",
)
conflicts("target=x86_64_v4:", when="%intel@2021")
depends_on("perl", type="build")
build_system("makefile", "cmake", default="makefile")
@ -542,6 +544,9 @@ def make_defs(self):
if self.spec.satisfies("+bignuma"):
make_defs.append("BIGNUMA=1")
if not self.spec.satisfies("target=x86_64_v4:"):
make_defs.append("NO_AVX512=1")
# Avoid that NUM_THREADS gets initialized with the host's number of CPUs.
if self.spec.satisfies("threads=openmp") or self.spec.satisfies("threads=pthreads"):
make_defs.append("NUM_THREADS=512")