Skip to content

Commit d2527cf

Browse files
committed
Fixing comment only in MPI_IN_PLACE case for ireduce in libnbc.
Signed-off-by: Geoffrey Paulsen <[email protected]>
1 parent 045d0c5 commit d2527cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/coll/libnbc/nbc_ireduce.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static inline int red_sched_chain (int rank, int p, int root, const void *sendbu
433433
res = NBC_Sched_recv ((char *)recvbuf+offset, false, thiscount, datatype, rpeer, schedule, true);
434434
} else {
435435
// but for any-src, recv into tmpbuf
436-
// because for any-src if we recved into recvbuf here we'd be
436+
// because for MPI_IN_PLACE if we recved into recvbuf here we'd be
437437
// overwriting our sendbuf, and we use it in the operation
438438
// that happens further down
439439
res = NBC_Sched_recv ((char *)offset, true, thiscount, datatype, rpeer, schedule, true);
@@ -445,7 +445,7 @@ static inline int red_sched_chain (int rank, int p, int root, const void *sendbu
445445
res = NBC_Sched_op ((char *) sendbuf + offset, false, (char *) recvbuf + offset, false,
446446
thiscount, datatype, op, schedule, true);
447447
} else {
448-
// for any-src, add tmpbuf into recvbuf
448+
// for MPI_IN_PLACE, add tmpbuf into recvbuf
449449
// (here tmpbuf holds the reduction from 1..n-1) and
450450
// recvbuf is our sendbuf
451451
res = NBC_Sched_op ((char *) offset, true, (char *) recvbuf + offset, false,

0 commit comments

Comments
 (0)