to your account
I want to use avx512 to compile tensorflow, so get update gcc from 4.8.5 to 4.9.0, tensorflow is 1.14.
bazel build tensorflow:libtensorflow_cc.so -c opt --copt=-march=native --copt=-mfpmath=both --copt=-mfma --copt=-mavx --copt=-mavx2 --copt=-mavx512f
error:
external/fft2d/fft/fftsg.c: In function 'cftf162':
external/fft2d/fft/fftsg.c:3028:1: error: insn does not satisfy its constraints:
(insn 488 487 335 2 (set (reg:DF 28 xmm7 [orig:225 D.7431 ] [225])
(plus:DF (reg:DF 28 xmm7 [orig:225 D.7431 ] [225])
(reg:DF 55 xmm18 [orig:225 D.7431 ] [225]))) external/fft2d/fft/fftsg.c:2937 764 {*fop_df_comm_mixed}
(nil))
external/fft2d/fft/fftsg.c:3028:1: internal compiler error: in copyprop_hardreg_forward_1, at regcprop.c:775
0x82e7d8 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
../../gcc/rtl-error.c:109
0x82e7ff _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../gcc/rtl-error.c:120
0x8098a1 copyprop_hardreg_forward_1
../../gcc/regcprop.c:775
0x8098a1 copyprop_hardreg_forward
../../gcc/regcprop.c:1110
0x8098a1 execute
../../gcc/regcprop.c:1283
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Target //tensorflow:libtensorflow_cc.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
it seemd that fftsg.c may be has error, but when I compile fftsg.c only, there was no error.
gcc fftsg.c -mavx -mavx2 -mavx512f -march=native -mfma -lm //it's ok