patchmake - Patches: patch #6905, add .AUTOPARALLEL flag


You are not allowed to post comments on this tracker with your current authentication level.

patch #6905: add .AUTOPARALLEL flag

Submitted by:  Colin Walters <cgwalters>
Submitted on:  Sun 30 Aug 2009 10:31:39 PM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Fixed Release: None

Mon 14 Sep 2009 07:17:27 AM UTC, comment #2:

Yes, that would be a more flexible solution. This way N in -jN can come from all kinds of sources (e.g., from user's .profile).

Boris Kolpackov <bosk>
Project Member
Sat 12 Sep 2009 10:37:48 PM UTC, comment #1:

What I would prefer to see is the ability to enable parallelism by adding -jN to the MAKEFLAGS variable, inside the makefile. That gives the same feature, while not having to introduce any new constructs. It's also, arguably, the first thing someone will try if they want to do this.


Paul D. Smith <psmith>
Project Administrator
Sun 30 Aug 2009 10:31:39 PM UTC, original submission:

One problem I have hit repeatedly in community-maintained free software projects is regressions in parallel building, both from the maintainers (who may not be explicitly specifying -jX) or from new contributors (who may not even know about -jX or whether the project supports parallel builds).

Experience has proven to me over and over again, that unless something is the default, it will constantly be broken.

Now, most large-scale software projects with resources (time/money) likely have maintained autobuilders which very quickly catch regressions in parallel building. But the smaller-scale projects won't, and even for the larger projects, it's useful to immediately catch regressions.

So what this patch does is add a .AUTOPARALLEL flag (in the spirit of .NOPARALLEL) which when seen automatically enables parallelism. I chose a default of 8 jobs which feels reasonable; someone can later come by and add some heuristics based on system load, CPU cores, whatever.

Colin Walters <cgwalters>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bosk (Posted a comment)
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by cgwalters (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 30 Aug 2009 10:31:39 PM UTCcgwaltersAttached File-=>Added gnu-make-autoparallel.patch, #18659

    Back to the top

    Powered by Savane 3.1-cleanup1