summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richert <alexander.richert@noaa.gov>2024-09-26 22:12:36 -0700
committerGitHub <noreply@github.com>2024-09-27 07:12:36 +0200
commit29d85ba5527fcba3e89d2603b4ab935e049f7bd0 (patch)
tree6d1ab27c58ece9efdbab04fd8d7a1dafa30d5fbf
parent1b01680be1d334dd787c42b4a8a2f12eba0e077e (diff)
downloadspack-29d85ba5527fcba3e89d2603b4ab935e049f7bd0.tar.gz
spack-29d85ba5527fcba3e89d2603b4ab935e049f7bd0.tar.bz2
spack-29d85ba5527fcba3e89d2603b4ab935e049f7bd0.tar.xz
spack-29d85ba5527fcba3e89d2603b4ab935e049f7bd0.zip
openblas: %intel@2021: conflict with avx512 (#44883)
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index dcb965dbc2..686de1b71b 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -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 @@ class MakefileBuilder(spack.build_systems.makefile.MakefileBuilder):
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")