Skip to content

Commit 08f6867

Browse files
authored
Merge pull request #8060 from bosilca/fix/ialltoallw
Prevent some rank from not increasing the non-blocking collective tag if they have no data to exchange.
2 parents 9203156 + 96fea22 commit 08f6867

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ompi/mca/coll/libnbc/nbc_ialltoallw.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ static int nbc_alltoallw_init(const void* sendbuf, const int *sendcounts, const
6767
span = lspan;
6868
}
6969
}
70+
/**
71+
* If this process has no data to send or receive it can bail out early,
72+
* but it needs to increase the nonblocking tag to stay in sycn with the
73+
* rest of the processses.
74+
*/
7075
if (OPAL_UNLIKELY(0 == span)) {
76+
ompi_coll_base_nbc_reserve_tags(comm, 1);
7177
return nbc_get_noop_request(persistent, request);
7278
}
7379
tmpbuf = malloc(span);

0 commit comments

Comments
 (0)