Skip to content

Commit

Permalink
Added test for complex on SharedArrays (#18097)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored and ViralBShah committed Aug 18, 2016
1 parent 2041bbe commit 68ba177
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/parallel_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,18 @@ for (x,i) in enumerate(d)
@test x == i
end

# complex
sd = SharedArray(Int,10)
se = SharedArray(Int,10)
@sync @parallel for i=1:10
sd[i] = i
se[i] = i
end
sc = complex(sd,se)
for (x,i) in enumerate(sc)
@test i == complex(x,x)
end

# Once finalized accessing remote references and shared arrays should result in exceptions.
function finalize_and_test(r)
finalize(r)
Expand Down

0 comments on commit 68ba177

Please sign in to comment.