9
I am running on Windows the example from the documentation:
julia> function compute_something(A::DArray)
B = darray(eltype(A), size(A), 3)
for i = 1:size(A,3)
@spawnat owner(B,i) B[:,:,i] = sqrt(A[:,:,i])
end
B
end
julia> A = drand(10, 15, 4)
julia> compute_something(A)
But I get an error:
in compute_something: B not defined
Why I'm getting this error?
In Web REPL this example works.