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

Compatibility with other FORTRAN compiles

desouzasantos
Beginner
504 Views

I notice that some FORTRAN programs provide completely different results if compiled by previous products, such as COMPAQ, against the provided using Intel Fortran compiler. Is there any way to eliminate or at least reduce those differences? Thank you for any help.

Marcio

(dss@csfmb.com)

0 Kudos
2 Replies
rreis
New Contributor I
504 Views
Different optimizations can make different results... if you check the compiler flags that force the program to obey standard rules or force proper arithmetic/precision that shouldn't happen.
0 Kudos
Steven_L_Intel1
Employee
504 Views
Your expectations may be unrealistic, or your code may have errors. Can you show us a test case? You usually won't get the exact same floating point results as these can vary depending on order of operations, extended precision and more. CVF always used "X87" instructions for floating point, often doing calculations in greater precsion than what you declared. Intel Fortran, by default, uses the faster SSE instructions, but always uses declared precision. You can force Intel Fortran to use X87 by adding the /arch:ia32 switch, but the program will run slower.
0 Kudos
Reply