|
From: | Howard Chu |
Subject: | Re: Dynamic adjustments of build dependencies for the number of available processors |
Date: | Mon, 05 Jan 2015 19:18:39 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 SeaMonkey/2.34a1 |
SF Markus Elfring wrote:
It seems like you want to automatically expand or contract the number of jobs that make will run in parallel,Yes, exactly. I can not use the parameter "-j" directly for the start of the main make process in my case so far.based on some processing of the recipe.One of the variables (or make rules) will call the command "getconf _NPROCESSORS_ONLN". The corresponding processes should be efficiently started for parallel background execution after a serial data preparation was finished.
This makes very little sense. In a properly written Makefile, your serial preparation step will remain serial no matter what "-j" arguments are used, so it should be safe to just invoke "make -j xx" at the beginning and let things run serially or in parallel as necessary.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
[Prev in Thread] | Current Thread | [Next in Thread] |