Hi,
Below is some output; that I can't completely understand. Specifically,
where are variables d,e,f after they are initialized? Are they created and
destroyed dynamically on worker 2?
julia> a,b,c
(10,20,30)
julia> whos()
Base Module
Core Module
Main Module
a Int64
ans (Int64,Int64,Int64)
b Int64
c Int64
julia> fetch(@spawnat 2 whos())
From worker 2: Base Module
From worker 2: Core Module
From worker 2: Main Module
julia> fetch(@spawnat 2 d,e,f = (a,b,c))
(10,20,30)
julia> fetch(@spawnat 2 whos())
From worker 2: Base Module
From worker 2: Core Module
From worker 2: Main Module
julia> whos()
Base Module
Core Module
Main Module
a Int64
ans Nothing
b Int64
c Int64
My full post on StackOverFlow is
http://stackoverflow.com/questions/30407724/how-does-julias-spawnat-initialize-variables-on-remote-worker-process
Thanks,
GS