Maybe I spoke too soon. I don't understand why @parallel can see `a` but not 
foo in the following (I hope this isn't another silly mistake on my part, else 
I be banished)?


julia> a=1
1

julia> addprocs(3)
3-element Array{Any,1}:
 2
 3
 4

julia> x = @parallel (vcat) for k=1:3
               sin(a)
       end
3-element Array{Float64,1}:
 0.841471
 0.841471
 0.841471

julia> foo(a) = sin(a)
foo (generic function with 1 method)

julia> x = @parallel (vcat) for k=1:3
               foo(a)
       end
 exception on exception on exception on 324: : : ERROR: foo not defined
 in anonymous at no file:2
 in anonymous at multi.jl:1263
 in anonymous at multi.jl:840




Reply via email to