I have a module ,
my_module.jl, which includes functions that I would like to use with
pmap. Currently, I have tried to execute this like:
addprocs(4) include("my_module.jl") @everywhere function pmap_f(x) return my_module.g(x)^2 end xvals = [[x] for x in linspace(0,1)]; gvals = pmap(pmap_f, xvals) rmprocs(workers())
But this just ends up generating an error that my_module not found in the current path. Can someone offer some guidance about the correct way to set up such a script?