[Scons-dev] SCons with shared resource

Kenny, Jason L jason.l.kenny at intel.com
Wed Nov 20 18:35:52 EST 2013


Small clarification as I fumbled with the keyboard...
Technically all tasks in SCons run in parallel -> Technically none of the tasks in SCons run in parallel

-----Original Message-----
From: scons-dev-bounces at scons.org [mailto:scons-dev-bounces at scons.org] On Behalf Of Kenny, Jason L
Sent: Wednesday, November 20, 2013 5:34 PM
To: scons-dev at scons.org
Subject: Re: [Scons-dev] SCons with shared resource

Technically all tasks in SCons run in parallel, thanks to a GIL. What run in parallel are the subprocess calls to a command line ( as these turn into waits from the python point of view). The easy way to do what you suggest its to add locks around this shared data to force the execution of one task at a time.

Jason

-----Original Message-----
From: scons-dev-bounces at scons.org [mailto:scons-dev-bounces at scons.org] On Behalf Of Alex.Burton at csiro.au
Sent: Wednesday, November 20, 2013 5:03 PM
To: scons-dev at scons.org
Subject: [Scons-dev] SCons with shared resource

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 ?

Thanks,

Alex

Alex Burton
Research Engineer - Solar Thermal - Energy Technology - CSIRO
+61 2 4960 6110
+61 416 594 752


_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
http://two.pairlist.net/mailman/listinfo/scons-dev
_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org
http://two.pairlist.net/mailman/listinfo/scons-dev


More information about the Scons-dev mailing list