hidden text to trigger early load of fonts ПродукцияПродукцияПродукцияПродукция Các sản phẩmCác sản phẩmCác sản phẩmCác sản phẩm المنتجاتالمنتجاتالمنتجاتالمنتجات מוצריםמוצריםמוצריםמוצרים
Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29016 Discussions

IEEE 754 Numerical Accuracy with Optimization

LANL
Beginner
253 Views
DOE (Department of Energy) National Laboratories are working with scientists who are requesting identical numerical accuracy for all optimizing options. Is the IEEE 754 arithmetic operator implementation in IFX more robust than in IFORT?
0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
192 Views

You will want to compile with -fp-model precise for best results. But there are other differences you may not be able to account for - I discussed this in a Supercomputing presentation: Improving Numerical Reproducibility in C/C++/Fortran  Changing compilers will almost certainly lead to small differences due to order of operations.

JohnNichols
Valued Contributor III
102 Views

The only way to check is to write a check program and look at the statistical results.  But Steve is correct there will be differences, small but different.  That is the fun of statistical science, hang on all science is statistical in the end.  

0 Kudos
Reply