This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "float complex" arithmetic performance much slower than expected



On Wed, 6 Mar 2013, Michele Martone wrote:


>  . CFLAGS for gcc:
> "-O3 -pipe -march=native -mtune=native -mavx -std=c99 -fno-unroll-loops"
>  . CFLAGS for icc: "-O3 -xAVX -restrict -unroll=0"

This makes a comparison "unfair" since the two compilers use different
optimization restrictions for floating-point operations by default (GCC is
conservative, and thus more restricted in optimizations).  See the
documentation for -ffast-math GCC option, and floating-point flags in the ICC
help (e.g. options -fp-model and -mp).

Alexander


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]