Skip to content

Commit b682b63

Browse files
committed
bugfix: barrier_intra_doublering would post a recv from -1 (ANY_SOURCE)
instead of np-1 Signed-off-by: Aurelien Bouteiller <bouteill@icl.utk.edu>
1 parent 0fd550d commit b682b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/coll/base/coll_base_barrier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int ompi_coll_base_barrier_intra_doublering(struct ompi_communicator_t *comm,
125125

126126
OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"ompi_coll_base_barrier_intra_doublering rank %d", rank));
127127

128-
left = ((rank-1)%size);
128+
left = ((size+rank-1)%size);
129129
right = ((rank+1)%size);
130130

131131
if (rank > 0) { /* receive message from the left */

0 commit comments

Comments
 (0)