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!