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

Inconsistent results from Fortran programs on iMac 10.7.x and above

Lyndon_L_
Beginner
589 Views

Hi,

    I am having an annoying problem on iMac. The fortran programs was compiled with ifort 13 (also used -fp-model precise and -O3 ), the results from 10 runs are inconsistent.But running the same programs in a Macbook pro running 10.6.x are consistent.  It is really strange! I am not sure if I should blame Mac OSX or Intel compiler.

    Did anyone experience similar problem in Mac OSX 10.7 or above?

     Thanks

Cheers,

Lyndon.

 

 

 

0 Kudos
1 Reply
Steven_L_Intel1
Employee
589 Views

My guess would be that 10.7 is applying address space layout randomization. Try compiling with -align array32byte and see if things improve. See also the attached presentation.

0 Kudos
Reply