jkleinj / Make_parallel

Demo for parallel execution of GNU Make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo for parallel GU Make execution

Example taken from

Run the Makefile.parallel with:

make -j 3 -f Makefile.parallel

From the GNU Make manual:

If the ‘-j’ option is followed by an integer, this is the number of recipes to execute at once; this is called the number of job slots. If there is nothing looking like an integer after the ‘-j’ option, there is no limit on the number of job slots. The default number of job slots is one, which means serial execution (one thing at a time).

You can use the ‘-l’ option to tell make to limit the number of jobs to run at once, based on the load average. The ‘-l’ or ‘--max-load’ option is followed by a floating-point number.

About

Demo for parallel execution of GNU Make