@@ -45,9 +45,9 @@ import Base: @deprecate
45
45
Scatterv! (nothing , similar (sendbuf, counts[Comm_rank (comm) + 1 ]), root, comm), false )
46
46
47
47
@deprecate (Gather! (sendbuf, recvbuf, count:: Integer , root:: Integer , comm:: Comm ),
48
- Gather! (sendbuf, UBuffer (recvbuf, count), root, comm), false )
48
+ Gather! (sendbuf, MPI . Comm_rank (comm) == root ? UBuffer (recvbuf, count) : nothing , root, comm), false )
49
49
@deprecate (Gather! (sendbuf:: AbstractArray , recvbuf, count:: Integer , root:: Integer , comm:: Comm ),
50
- Gather! (view (sendbuf, 1 : count), UBuffer (recvbuf, count), root, comm), false )
50
+ Gather! (view (sendbuf, 1 : count), MPI . Comm_rank (comm) == root ? UBuffer (recvbuf, count) : nothing , root, comm), false )
51
51
@deprecate (Gather! (sendbuf:: Nothing , recvbuf, count:: Integer , root:: Integer , comm:: Comm ),
52
52
Gather! (MPI. IN_PLACE, UBuffer (recvbuf, count), root, comm), false )
53
53
@deprecate (Gather! (sendbuf, recvbuf:: Nothing , count:: Integer , root:: Integer , comm:: Comm ),
@@ -61,9 +61,9 @@ import Base: @deprecate
61
61
Gather (view (sendbuf, 1 : count), root, comm), false )
62
62
63
63
@deprecate (Gatherv! (sendbuf, recvbuf, counts:: Vector{Cint} , root:: Integer , comm:: Comm ),
64
- Gatherv! (sendbuf, VBuffer (recvbuf, counts), root, comm), false )
64
+ Gatherv! (sendbuf, MPI . Comm_rank (comm) == root ? VBuffer (recvbuf, counts) : nothing , root, comm), false )
65
65
@deprecate (Gatherv! (sendbuf:: AbstractArray , recvbuf, counts:: Vector{Cint} , root:: Integer , comm:: Comm ),
66
- Gatherv! (view (sendbuf,1 : counts[MPI. Comm_rank (comm)+ 1 ]), VBuffer (recvbuf, counts), root, comm), false )
66
+ Gatherv! (view (sendbuf,1 : counts[MPI. Comm_rank (comm)+ 1 ]), MPI . Comm_rank (comm) == root ? VBuffer (recvbuf, counts) : nothing , root, comm), false )
67
67
@deprecate (Gatherv! (sendbuf:: Nothing , recvbuf, counts:: Vector{Cint} , root:: Integer , comm:: Comm ),
68
68
Gatherv! (MPI. IN_PLACE, VBuffer (recvbuf, counts), root, comm), false )
69
69
@deprecate (Gatherv! (sendbuf, recvbuf:: Nothing , counts:: Vector{Cint} , root:: Integer , comm:: Comm ),
0 commit comments