Skip to content

Commit 419eeb0

Browse files
committed
Move call to ompi_comm_rank that is only used for debug
Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
1 parent 1b99e18 commit 419eeb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ompi/mca/coll/base/coll_base_allreduce.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,6 @@ int ompi_coll_base_allreduce_intra_allgather_reduce(const void *sbuf, void *rbuf
12811281
ptrdiff_t extent, lb;
12821282
ompi_datatype_get_extent(dtype, &lb, &extent);
12831283

1284-
int rank = ompi_comm_rank(comm);
12851284
int size = ompi_comm_size(comm);
12861285

12871286
sendtmpbuf = (char*) sbuf;
@@ -1337,7 +1336,7 @@ int ompi_coll_base_allreduce_intra_allgather_reduce(const void *sbuf, void *rbuf
13371336
tmpsend_start = NULL;
13381337
}
13391338
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
1340-
__FILE__, line, err, rank));
1339+
__FILE__, line, err, ompi_comm_rank(comm)));
13411340
(void)line; // silence compiler warning
13421341
return err;
13431342

0 commit comments

Comments
 (0)