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: .f90 runs slower than .f


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


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