summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lang <67915889+lang-m@users.noreply.github.com>2024-03-05 17:27:05 +0100
committerGitHub <noreply@github.com>2024-03-05 17:27:05 +0100
commitdaf6acef6e9ac81c9e29213f942cb2e1eb5a5d84 (patch)
treea50a84c9a33fe873bf197cbe8abfd4b51f9976af
parentd30621e78751a74b414b41623ef3a01139373e00 (diff)
downloadspack-daf6acef6e9ac81c9e29213f942cb2e1eb5a5d84.tar.gz
spack-daf6acef6e9ac81c9e29213f942cb2e1eb5a5d84.tar.bz2
spack-daf6acef6e9ac81c9e29213f942cb2e1eb5a5d84.tar.xz
spack-daf6acef6e9ac81c9e29213f942cb2e1eb5a5d84.zip
py-numpy: patch for AVX512 build flags on Intel Classic Compiler (#43020)
-rw-r--r--var/spack/repos/builtin/packages/py-numpy/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-numpy/package.py b/var/spack/repos/builtin/packages/py-numpy/package.py
index c651b365b5..c63ea665f2 100644
--- a/var/spack/repos/builtin/packages/py-numpy/package.py
+++ b/var/spack/repos/builtin/packages/py-numpy/package.py
@@ -136,6 +136,16 @@ class PyNumpy(PythonPackage):
when="@1.22.0:1.22.3",
)
+ # Patch to fix AVX512 build flags on Intel Classic Compiler
+ # See https://github.com/spack/spack/issues/42204
+ # Numpy before 1.26 did not use meson, so the patch does not work for older versions
+ with when("%intel"):
+ patch(
+ "https://github.com/numpy/numpy/commit/953cc2dfc0f0e063a01778d1392c931d9031c469.patch?full_index=1",
+ sha256="fe42a018a69cfafb7c4efc183a7c73835a298e45a8f9a585cb411170871ff596",
+ when="@1.26:1.26.3",
+ )
+
# meson.build
# https://docs.scipy.org/doc/scipy/dev/toolchain.html#compilers
conflicts("%gcc@:8.3", when="@1.26:", msg="NumPy requires GCC >= 8.4")