Icc

From BenchIT-Wiki

Jump to: navigation, search

This site contains hints for the use of the Intel C and FORTRAN Compiler.

Useful Compiler Flags for both compilers

BENCHIT_CC_C_FLAGS_HIGH and BENCHIT_F77_C_FLAGS_HIGH should always contain:

  • -O3
  • -fno-alias (for most kernels, can generate wrong results if not used properly!)
  • -mcpu={pentium,pentiumpro,pentium4,itanium,itanium2,itanium2-9000}
  • -x*, where * should be looked up at the help.W for Williamette N for Northwood, P for Prescott, ...
    • if you set this flag you shouldn't need mcpu and mtune
    • this is only available for x86/x64 afaik
    • -ax* produces Code for the given processor and standard x86, so it shouldn't be used
  • -tpp{some number} (take a look at manpages), -tpp2 for Itanium2
    • the -tpp option is deprecated with newer ICC Versions (since 10.0.0?) use -mtune=itanium2 (for IA-64) instead

BENCHIT_CC_C_FLAGS_OMP and BENCHIT_F77_C_FLAGS_OMP should be "-openmp"

Personal tools