Skip to content

Commit e9612c5

Browse files
committed
Add more tests for non isbitstype scatter/gather
1 parent b507090 commit e9612c5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/primitives_tests.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ function primitives_tests(distribute)
7575
@test snd2 == snd3
7676
end
7777

78+
np = length(rank)
79+
rcv3 = map_main(rank) do rank
80+
fill(NonIsBitsType([2]),np)
81+
end
82+
snd3 = allocate_scatter(rcv3)
83+
scatter!(snd3,rcv3)
84+
snd3 = scatter(rcv3)
85+
rcv4 = gather(snd3)
86+
map(rcv4,rcv2) do rcv4,rcv2
87+
@test rcv4 == rcv2
88+
end
89+
7890
rcv = multicast(rank,source=2)
7991
map(rcv) do rcv
8092
@test rcv == 2

0 commit comments

Comments
 (0)