[Scons-users] SCons with shared resources

Dirk Bächle tshortik at gmx.de
Wed Nov 20 18:33:47 EST 2013


Hi Alex,

On 21.11.2013 00:00, 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.

>

> Is there a way of explaining to scons that certain tasks should not be run in parallel ?


if you don't have too many tasks that you want to serialise, you can
create a "daisy chain" by specifying explicit dependencies with the
Depends() function:

a = env.Build()
b = env.Build()
env.Depends(b, a)


Is this maybe what you're looking for?

Best regards,

Dirk



More information about the Scons-users mailing list