.f90 runs slower than .f

Mikael Morin mikael.morin@sfr.fr
Tue Aug 7 10:11:00 GMT 2012


On 07/08/2012 10:40, Rachel Dowdall wrote:
> Oops, sorry about that (and the delay replying!)
> 
> I have removed all reference to the FoXML module and it compiles fine on
> my computer. It does need fftw which I can't really get rid of (I won't
> be able to tell if it is giving the right answer), that seems to be
> fairly standard though. Removing FoX made no difference to the timings.
> 
> https://dl.dropbox.com/u/70250131/gauge_field_v0.44-gfortrancheck.tar.bz2
> 
> Extract and do make NRQCDf77 or NRQCDf90 and just run with
> time ./NRQCDf77
> or
> time ./NRQCDf90
> 
> Thanks
> Rachel
> 
Your makefile is broken.

Beside the fact that the `clean' rule doesn't clean executables (I don't
know whether it is intended) and that the default rule does nothing (it
"builds" globals.F90), that the files psq.f and psq.f90 have the same
object file name, the problem here is that psq.f90 is built without
optimisation.
If you look at the link commands, you have only two or three object
files, the rest are source files that are compiled with the link options
which don't ask for optimisation.

Mikael



More information about the Fortran mailing list