Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ompi/communicator/comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,15 +853,15 @@ ompi_comm_split_type(ompi_communicator_t *comm,

/* check that all processors have been called with the same value */
for (int i = 0 ; i < size ; ++i) {
if ( results[2*i] != split_type ) {
if ( results[2*i] != split_type && MPI_UNDEFINED != results[2*i] && MPI_UNDEFINED != split_type) {
rc = OMPI_ERR_BAD_PARAM;
goto exit;
}
}

/* how many are participating and on my node? */
rc = ompi_comm_split_type_get_part (comm->c_local_group, results, &lranks, &my_size);
if (0 == my_size) {
if (0 == my_size && MPI_UNDEFINED != split_type) {
/* should never happen */
rc = OMPI_ERR_BAD_PARAM;
}
Expand Down