[Scons-users] [Scons-dev] SCons with shared resource
Bill Deegan
bill at baddogconsulting.com
Wed Nov 20 18:36:03 EST 2013
Alex,
Please send such emails to the users mailing list. The dev mailing list is
intended to discuss the internal development of SCons.
See comments below.
On Wed, Nov 20, 2013 at 3:03 PM, <Alex.Burton at csiro.au> wrote:
> Hi,
>
> I am successfully using scons for batch processing of simulation work.
>
> Unfortunately some of the tasks share resources that prevent them being
> executed in parallel.
> Other tasks are can be run in parallel.
>
> This means that I need to run scons in single processor mode, meaning some
> tasks are unnecessarily serialised.
>
> I am considering modifying the scons code to allow specification of a
> shared resource/ mutex for certain tasks.
>
> Does anyone have any advise as to how this is best implemented ?
>
One simple way to do this is to add a non existant file as a SideEffect()
(see man page).
Of those processes which you want to prevent running in parallel with each
other.
SCons should then avoid running two jobs which touch the same sideeffect
file..
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131120/60d2a370/attachment.html
More information about the Scons-users
mailing list