Skip to content

Commit 38f5a35

Browse files
authored
Merge pull request #8861 from bosilca/fix/comm_split_type
Fix typo in the reorder detection.
2 parents eba1796 + 0f348fd commit 38f5a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/communicator/comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ static int ompi_comm_split_verify (ompi_communicator_t *comm, int split_type, in
785785
}
786786

787787
for (int i = 0 ; i < size ; ++i) {
788-
if (MPI_UNDEFINED == results[i * 2] || (i > 1 && results[i * 2 + 1] < results[i * 2 - 1])) {
788+
if (MPI_UNDEFINED == results[i * 2] || (i >= 1 && results[i * 2 + 1] < results[i * 2 - 1])) {
789789
*need_split = true;
790790
break;
791791
}

0 commit comments

Comments
 (0)