From d82a91e9c7e3a6eb6a0640f53dc8f836f8252334 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Mon, 4 Dec 2017 19:20:52 +0100 Subject: [PATCH] Enable optimizations flags upto AVX Fixes https://github.com/mozilla/DeepSpeech/issues/1023 --- tc-vars.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tc-vars.sh b/tc-vars.sh index de4398da67a955..b6c35cbc9b920b 100755 --- a/tc-vars.sh +++ b/tc-vars.sh @@ -75,10 +75,11 @@ export GCC_HOST_COMPILER_PATH=/usr/bin/gcc # Also ensure to not require too recent CPU: AVX2/FMA introduced by: # - Intel with Haswell (2013) # - AMD with Excavator (2015) +# For better compatibility, AVX ony might be better. # # Build for generic amd64 platforms, no device-specific optimization # See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html for targetting specific CPUs -CC_OPT_FLAGS="-mtune=generic -march=x86-64 -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma" +CC_OPT_FLAGS="-mtune=generic -march=x86-64 -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx" BAZEL_OPT_FLAGS="" for flag in ${CC_OPT_FLAGS}; do