When having multiple workers (in my case on one machine)
the ARGS variable only has the cmdline arguments on
the proc with myid() == 1.

For the other workers it is just an empty list.
I don't know if this is intended or not.

See below how I update the ARGS variable
on the workers. The procedure works, but please let me know
if someone has a less verbose way of doing 
this.

Cheers.


@everywhere function get_args(rrARGS)
  global ARGS
  for arg in fetch(rrARGS)
    push!(ARGS, arg)
  end
end


rrARGS = RemoteRef(1)
put!(rrARGS, ARGS)
for iProc in workers()
  remotecall_fetch(iProc, get_args, rrARGS)
end

Reply via email to