Some discussion regarding this on github:

https://github.com/JuliaLang/julia/issues/3674
https://github.com/JuliaLang/julia/issues/5232



On Tue, May 6, 2014 at 5:55 AM, Ethan Anderes <[email protected]>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