Skip to content
Snippets Groups Projects
Commit aab12d57 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add extra flags recommended for EPYC

From http://www.prace-ri.eu/IMG/pdf/Best-Practice-Guide-AMD.pdf, note we add these to CFLAGS as the icc_flags is a choice vector
parent 30e3e622
Branches
Tags
1 merge request!993Add -march=core-avx2 for AMD CPUs compiled using ICC
......@@ -138,7 +138,8 @@ if test "$ac_test_CFLAGS" != "set"; then
*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" ;; # EPYC
83?f??:*:*:*) icc_flags="-march=core-avx2"
CFLAGS="$CFLAGS -fma -ftz -fomit-frame-pointer";; # EPYC
esac ;;
esac ;;
esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment