Use of the Intel Fortran, C, and C++ compilers (icc, icpc, ifort) is recommended for all applications. Detailed information about these compilers can be found by issuing 'man icc' and 'man ifort'.
The default compiler options include such optimizations as -O2, -m64 . However, the use of the following compiler options will usually provide better performance of your program.
The -fast compiler option includes the -ipo option that turns on inter-procedural optimization. To get the full benefit of this optimization, you must compile all program files at the same time. For example,
mpiifort -fast -msse3 program1.f90 program2.f90 program3.f90
The '-check all' ifort compiler option turns on checks for various conditions at run time. Intel C/C++ compiler also supports a number of -check* options. For details issue "man icc".
The -w3 Intel C/C++ compiler option enables diagnostics for remarks, warnings, and errors. Additional warnings are also enabled. The -warn ifort option enables all warning messages except errors and stderrors.