openblas: %intel@2021: conflict with avx512 (#44883)
This commit is contained in:
parent
1b01680be1
commit
29d85ba552
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user