This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/47495] .mod files: File modification time - Makefile build issue


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47495

--- Comment #12 from Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> 2011-01-29 19:31:14 UTC ---
(In reply to comment #9)
> test.mod: test.f90
>       gfortran -fsyntax-only test.f90
> 
> test.o: test.f90 test.mod
>       gfortran -c -O3 test.f90
> 
> could speed things up for large parallel projects since the next file can be
> compiled (modded ?) as soon as the .mod of the previous one has been generated,
> there is no need to wait for the .o.

Actually this seems to work rather well. I have been testing this, and for CP2K
on a 48 core server, I get a 2-fold speedup for a fresh build. This really
seems something to consider seriously.


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