Loading a script using reload executes the code on all workers. How do I 
only execute code on one worker?

Pseudo code

algorithm.jl:
function fun(s::Int64)
....
end

run.jl:
result=pmap(fun, [1:100])
#do something with result

one the julia shell I execute 
addprocs(12)
reload(algorithm.jl)
reload(run.jl) 

but now run.jl runs on all cores. What is the right solution to this 
problem?


Reply via email to