Skip to content

Commit e6aea8d

Browse files
authored
Add an EnsureComm call to make sure things are sane (elemental#182)
1 parent b63b170 commit e6aea8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/El/blas_like/level1/Copy/TranslateBetweenGrids.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3891,6 +3891,7 @@ void TranslateBetweenGrids(
38913891
Int ALDim = A.LDim();
38923892

38933893
mpi::Comm const& viewingCommB = B.Grid().ViewingComm();
3894+
38943895
bool const inAGrid = A.Participating();
38953896
bool const inBGrid = B.Participating();
38963897

@@ -3951,6 +3952,10 @@ void TranslateBetweenGrids(
39513952
? *maybeMultiSync
39523953
: (inAGrid ? syncInfoA : syncInfoB));
39533954

3955+
// Collective!
3956+
mpi::EnsureComm<T, Collective::SEND>(viewingCommB, syncInfo);
3957+
mpi::EnsureComm<T, Collective::RECV>(viewingCommB, syncInfo);
3958+
39543959
// Translate the ranks from A's VC communicator to B's viewing so
39553960
// that we can match send/recv communicators. Since A's VC
39563961
// communicator is not necessarily defined on every process, we

0 commit comments

Comments
 (0)