8000 BUILD: Disable MMX registers when building with -mavx512f · numpy/numpy@b3eed14 · GitHub
[go: up one dir, main page]

Skip to content

Commit b3eed14

Browse files
committed
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.
1 parent 650f1b1 commit b3eed14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/distutils/ccompiler_opt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class attribute `conf_features`, also its override
346346
FMA4 = dict(flags="-mfma4"),
347347
FMA3 = dict(flags="-mfma"),
348348
AVX2 = dict(flags="-mavx2"),
349-
AVX512F = dict(flags="-mavx512f"),
349+
AVX512F = dict(flags="-mavx512f -mno-mmx"),
350350
AVX512CD = dict(flags="-mavx512cd"),
351351
AVX512_KNL = dict(flags="-mavx512er -mavx512pf"),
352352
AVX512_KNM = dict(

0 commit comments

Comments
 (0)
0