summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorRaghuveer Devulapalli <raghuveer.devulapalli@intel.com>2022-02-28 10:37:11 -0800
committerRaghuveer Devulapalli <raghuveer.devulapalli@intel.com>2022-02-28 10:37:11 -0800
commitb3eed1459ccd97255e9868d43b4a8d937a5f9d4c (patch)
tree13a0563405b7f66db55d550f21443499f0496478 /numpy/distutils
parent650f1b14fc2d298b4ca5ecd6d22d9c7cfa02eb70 (diff)
downloadnumpy-b3eed1459ccd97255e9868d43b4a8d937a5f9d4c.tar.gz
BUILD: Disable MMX registers when building with -mavx512f
Work around for a bug in gcc compiler. When using several kmask variables __mmask16/__mmask8, the compiler sometimes uses %mmx registers to save them on to the stack which corrupts the x87 stack.
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/ccompiler_opt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py
index d0c40a7b2..97396cbe0 100644
--- a/numpy/distutils/ccompiler_opt.py
+++ b/numpy/distutils/ccompiler_opt.py
@@ -346,7 +346,7 @@ class _Config:
FMA4 = dict(flags="-mfma4"),
FMA3 = dict(flags="-mfma"),
AVX2 = dict(flags="-mavx2"),
- AVX512F = dict(flags="-mavx512f"),
+ AVX512F = dict(flags="-mavx512f -mno-mmx"),
AVX512CD = dict(flags="-mavx512cd"),
AVX512_KNL = dict(flags="-mavx512er -mavx512pf"),
AVX512_KNM = dict(