We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 044c561 + 65be935 commit 3a69b72Copy full SHA for 3a69b72
ompi/communicator/comm.c
@@ -853,15 +853,15 @@ ompi_comm_split_type(ompi_communicator_t *comm,
853
854
/* check that all processors have been called with the same value */
855
for (int i = 0 ; i < size ; ++i) {
856
- if ( results[2*i] != split_type ) {
+ if ( results[2*i] != split_type && MPI_UNDEFINED != results[2*i] && MPI_UNDEFINED != split_type) {
857
rc = OMPI_ERR_BAD_PARAM;
858
goto exit;
859
}
860
861
862
/* how many are participating and on my node? */
863
rc = ompi_comm_split_type_get_part (comm->c_local_group, results, &lranks, &my_size);
864
- if (0 == my_size) {
+ if (0 == my_size && MPI_UNDEFINED != split_type) {
865
/* should never happen */
866
867
0 commit comments