Re: gfortran, g95, and dual-core



Charles Russell wrote:
Tim Prince wrote:

For example,(with f77 code) if the makefile
runs fsplit on a single source file, causes each subroutine to be
rebuilt separately, then combines individual objects into a single large
object, make doesn't automatically see the possibility of building the
individual objects in parallel.

Is there some simple way to build them in parallel?
I suppose the individual objects have be visible in the make dependency
analysis, requiring rules which cause each individual source file to be
generated by fsplit, and automatically forming a table of dependencies
for each big relocatable object. It would remain to be seen whether the
speedup from parallelization makes up for the additional time spent by
make during its initial analysis phase (not to mention the time we spend
learning more about makefiles).
I gave this only as an example, not thinking that many people are
interested in the 2 level relocatable object build. When the build is
done from scratch, parallel make already speeds it up greatly.
Compiler vendors don't advocate 2 level relocatable object builds. They
are done partly to skip a lot of the interprocedural linkage stuff the
compiler people spent so much time on.
.



Relevant Pages

  • Re: gfortran, g95, and dual-core
    ... > For example,(with f77 code) if the makefile ... then combines individual objects into a single large ... The fsplit example is not representative of my habits, which are to keep all routines in separate files and put everything but the main into static link libraries. ...
    (comp.lang.fortran)
  • Re: gfortran, g95, and dual-core
    ... > For example,(with f77 code) if the makefile ... then combines individual objects into a single large ... utilities with more difference from recognized standards. ...
    (comp.lang.fortran)
  • Re: gfortran, g95, and dual-core
    ... Tim Prince wrote: ... > For example,(with f77 code) if the makefile ... then combines individual objects into a single large ...
    (comp.lang.fortran)
  • Re: gfortran, g95, and dual-core
    ... Tim Prince wrote: ... For example,(with f77 code) if the makefile ... then combines individual objects into a single large ...
    (comp.lang.fortran)