I have some ocean model code (Princeton Ocean Model) that I run on a quad 4-core Xeon E7330 system. When I run this code I get slightly different results each time. I have tried different compiler switches but the basic ones are "-parallel -O2". Are there switches that are recommended to assure that results will be the same from run to run, hopefully without a huge performance penalty? Thanks a lot.
For more complete information about compiler optimizations, see our Optimization Notice.