Skip to content

Commit 1462450

Browse files
committed
coll/libnbc: do not exchange data between roots in ompi_coll_libnbc_ireduce_scatter_inter()
this is now useless since the scatter is done via the local communicator
1 parent a55d574 commit 1462450

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ompi/mca/coll/libnbc/nbc_ireduce_scatter.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,6 @@ int ompi_coll_libnbc_ireduce_scatter_inter (const void* sendbuf, void* recvbuf,
283283
tbuf = lbuf; lbuf = rbuf; rbuf = tbuf;
284284
}
285285

286-
/* exchange data with remote root for scatter phase (we *could* use the local communicator to do the scatter) */
287-
res = NBC_Sched_recv (rbuf, true, count, datatype, 0, schedule, false);
288-
if (OPAL_UNLIKELY(OMPI_SUCCESS != res)) {
289-
NBC_Return_handle (handle);
290-
return res;
291-
}
292-
293-
res = NBC_Sched_send (lbuf, true, count, datatype, 0, schedule, true);
294-
if (OPAL_UNLIKELY(OMPI_SUCCESS != res)) {
295-
NBC_Return_handle (handle);
296-
return res;
297-
}
298-
299286
/* do the local scatterv with the local communicator */
300287
res = NBC_Sched_copy (lbuf, true, recvcounts[0], datatype, recvbuf, false,
301288
recvcounts[0], datatype, schedule, false);

0 commit comments

Comments
 (0)