This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Gfortran vs Ifort when using MPI


Depending on the system, using the right -march makes a big difference. Try -march=native (not supported on all targets). (If the compiler thinks that there is no SSE, -march=native can help a lot; if I recall correctly, for x86 the settings are rather conservative.

For a 50x-100x performance difference, I suppose there is something *awfully* wrong going on, like wrong alignment or NaNs all over the place. I suggest a) checking the results, b) roughly profiling the gfortran code ("gfortran -pg" and using gprof) to get an idea where it spends so much time. It'll be much easier than us shooting in the dark.


FX

--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]