Skip to content
Snippets Groups Projects
Commit 0f348fd0 authored by George Bosilca's avatar George Bosilca
Browse files

Fix typo in the reorder detection.


The result was that only processes with rank >= 2 were counted in the decision,
so if the reorder was decide by the first two processes (as in the example
provided on the issue #8854) the reorder was not correctly determined.

Fixes #8854.

Signed-off-by: default avatarGeorge Bosilca <bosilca@icl.utk.edu>
parent eba17960
Branches
No related tags found
No related merge requests found
...@@ -785,7 +785,7 @@ static int ompi_comm_split_verify (ompi_communicator_t *comm, int split_type, in ...@@ -785,7 +785,7 @@ static int ompi_comm_split_verify (ompi_communicator_t *comm, int split_type, in
} }
for (int i = 0 ; i < size ; ++i) { for (int i = 0 ; i < size ; ++i) {
if (MPI_UNDEFINED == results[i * 2] || (i > 1 && results[i * 2 + 1] < results[i * 2 - 1])) { if (MPI_UNDEFINED == results[i * 2] || (i >= 1 && results[i * 2 + 1] < results[i * 2 - 1])) {
*need_split = true; *need_split = true;
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment