Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29277 Discussions

Fortran Compiler Settings for Maximum Speed

schulzey
New Contributor I
451 Views
Can anyone advise the compiler settings to get the maximum raw speed out of matrix multiplicationcalculations using parallel processing while maintaining precise accuracy for REAL*8 calculations? Alldebugging and other development phase features can be turned off.

I am comparing the Intel XE Windows compiler with Lahey Fortran and speed is my main criterion. Does anyone have any comments concerning comparisons between the two compilers?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
451 Views
The simplest suggestion is to call the Intel Math Kernel Library for your matrix multiply (DGEMM or similar). You will automatically get the best parallel performance. The Fortran compiler can recognize some forms of matrix-multiply and call MKL on your behalf, if you compile with auto-parallelization and the highest optimization level, but that will also allow some optimizations that may not be as precise as you want.

The /fast option is shorthand for a set of options that usually improve performance, but note that this implies /QxHost which assumes you are running the program on the same CPU type you compile on.
0 Kudos
Reply