automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parallel building


From: Tom Tromey
Subject: Re: parallel building
Date: 29 Mar 2002 20:58:21 -0700

>>>>> "Fausto" == Fausto Sanchez <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]