Avoid icc-specific -march=core-avx2 flag with gcc/clang
commitda0483acfd2801f5e9f103efee30a54d46812715
authorSzilárd Páll <pall.szilard@gmail.com>
Wed, 15 Nov 2017 19:48:50 +0000 (15 20:48 +0100)
committerSzilárd Páll <pall.szilard@gmail.com>
Mon, 12 Mar 2018 14:37:19 +0000 (12 15:37 +0100)
treef6064b1a1459729bbcc16eb8ef8302aabd2cedeb
parent35f3e5b7d50754b0d98195bf5b9ea9c8329a5ce9
Avoid icc-specific -march=core-avx2 flag with gcc/clang

This change makes sure that the -march=core-avx2 icc-specific
optimization flag is only used for Intel compilers. It is not only
unnecessary for gcc/clang but also undocumented (and not proven to be
useful, actually potentually harmful with gcc <=6, measured 1-3% lower
perf.).

Change-Id: Ic2f05554ea6e460c53fa307fc1da3de1b6868e2f
cmake/gmxSimdFlags.cmake