Re: [julia-users] Best way to make a module available to all pmap workers?

2016-04-05 Thread Tim Holy
Do you need the @everywhere? using should be good enough on its own. However, this isn't working perfectly: see https://github.com/JuliaLang/julia/issues/9245 https://github.com/JuliaLang/julia/issues/3674 for some things you may need to work around (or better yet, submit a fix for!). In

[julia-users] Best way to make a module available to all pmap workers?

2016-04-05 Thread Thomas Covert
I have some code in a module (say, MyModule.jl) for which I would like each worker in a pmap() to have access. Right now, I accomplish this by something like: addprocs(CPU_CORES) @everywhere using MyModule function dostuff(x) # code that uses functions exported from MyModule end results =