Skip to content

Commit 4404c06

Browse files
authored
Merge pull request #9344 from abouteiller/bugfix/barrier-doublering@master
2 parents e64ee69 + b682b63 commit 4404c06

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)