Skip to content
Snippets Groups Projects
Commit d9167a95 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'intel-amd-optimization' into 'master'

Add -march=core-avx2 for AMD CPUs compiled using ICC

See merge request !993
parents dee5c258 aab12d57
No related branches found
No related tags found
1 merge request!993Add -march=core-avx2 for AMD CPUs compiled using ICC
...@@ -133,6 +133,14 @@ if test "$ac_test_CFLAGS" != "set"; then ...@@ -133,6 +133,14 @@ if test "$ac_test_CFLAGS" != "set"; then
*000?f[[346]]?:*:*:*|?f[[346]]?:*:*:*|f[[346]]?:*:*:*) icc_flags="-xSSE3 -xP -xO -xN -xW -xK" ;; *000?f[[346]]?:*:*:*|?f[[346]]?:*:*:*|f[[346]]?:*:*:*) icc_flags="-xSSE3 -xP -xO -xN -xW -xK" ;;
*00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) icc_flags="-xSSE2 -xN -xW -xK" ;; *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) icc_flags="-xSSE2 -xN -xW -xK" ;;
esac ;; esac ;;
*:68747541:444d4163:69746e65) # AMDs with AVX2 support.
case $ax_cv_gcc_x86_cpuid_1 in
*061?f??:*:*:*|61?f??:*:*:*) icc_flags="-march=core-avx2" ;;
*06??f??:*:*:*|6??f??:*:*:*) icc_flags="-march=core-avx2" ;;
*070?f??:*:*:*|70?f??:*:*:*) icc_flags="-march=core-avx2" ;;
83?f??:*:*:*) icc_flags="-march=core-avx2"
CFLAGS="$CFLAGS -fma -ftz -fomit-frame-pointer";; # EPYC
esac ;;
esac ;; esac ;;
esac esac
if test "x$icc_flags" != x; then if test "x$icc_flags" != x; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment