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

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

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.

 

 

 

2 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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.

Anexos: 

AnexoTamanho
Download wp129s1.pdf694.18 KB
Steve

Faça login para deixar um comentário.