This is the mail archive of the automake@gnu.org mailing list for the automake 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: parallel building


>>>>> "Fausto" == Fausto Sanchez <fas@andiamo.com> writes:

Fausto> Does automake support parallel builds? Is it just a matter of
Fausto> doing a gmake -j 5?

Yes.  If automake generates code that isn't -jN safe, then that is a
bug.  Note that of course the Makefile.am author can defeat this; it
is his responsibility not to do so.

Fausto> I see that the generated Makefile contains a loop based on
Fausto> SUBDIRS, so this would make the build sequential. How do
Fausto> others handle parallel building using automake take adavnce of
Fausto> 10 cpu's on a system?

Subdirectory order is fixed.  That is part of the SUBDIRS spec.  We'll
never change that.

That said, current versions of GNU make will still allow each
subdirectory build to be done in parallel.  In practice I would expect
the amount of sequentiality (is that a word?) you will see due to
SUBDIRS to be small.

You can also try moving to a "one large Makefile" approach.  One
benefit of this approach is complete parallelism.

Tom


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