I would recommend just calling addprocs at the very beginning. If you know 
your code needs to use multiple processors, may as well say so right away.

On Monday, May 5, 2014 7:25:22 PM UTC-5, Ethan Anderes wrote:
>
> Thanks James:
>
> That's basically the solution that I've got implemented now. Except I use 
> require("functions.jl") which seems to make these function available to all 
> workers. It feels a bit un-natural since my use of parallelism is a small 
> part of my code, so I end up calling require("functions.jl") twice, first 
> at the top of the script, then again just after addprocs(...). 
>
> I also tried looking at the source code for this stuff, in the hopes that 
> I could figure out the finer points of passing/requesting variable from 
> works and local worker namespaces but I just couldn't penetrate it. Maybe I 
> need to wait till someone does a detailed blog post on a particular problem.
>
 

> Cheers!
>
>

Reply via email to