You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue when running this block of code:
using Distributed
if nprocs() == 1
addprocs()
end
@everywhere using DistributedArrays
a = dfill([], 20)
@sync @distributed for i in 1:20
b = (i, myid())
push!(localpart(a)[1], b)
end
a
I ran into an issue when running this block of code:
I would expect
a
to bebecause I am only pushing to the first local part of
a
. But what I get is this:It seems that i am pushing to all local parts of
a
, not just the first one.The text was updated successfully, but these errors were encountered: