Skip to content

Commit fff9f59

Browse files
authored
Merge pull request #9994 from mdosanjh/part-comm-fix
Simple bug fixes in part comm
2 parents 580984b + 49fad15 commit fff9f59

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ompi/mca/part/persist/part_persist.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@ mca_part_persist_progress(void)
236236
size_t dt_size_;
237237
int32_t dt_size;
238238

239-
req->initialized = true;
240-
241239
if(MCA_PART_PERSIST_REQUEST_PSEND == req->req_type) {
242240
/* parse message */
243241
req->world_peer = req->setup_info[1].world_rank;
@@ -279,7 +277,9 @@ mca_part_persist_progress(void)
279277
req->setup_info[0].world_rank = ompi_part_persist.my_world_rank;
280278
err = MCA_PML_CALL(isend(&(req->setup_info[0]), sizeof(struct ompi_mca_persist_setup_t), MPI_BYTE, req->world_peer, req->my_recv_tag, MCA_PML_BASE_SEND_STANDARD, ompi_part_persist.part_comm_setup, &req->setup_req[0]));
281279
if(OMPI_SUCCESS != err) return OMPI_ERROR;
282-
}
280+
}
281+
282+
req->initialized = true;
283283
}
284284
} else {
285285
if(false == req->req_part_complete && REQUEST_COMPLETED != req->req_ompi.req_complete && OMPI_REQUEST_ACTIVE == req->req_ompi.req_state) {
@@ -572,6 +572,10 @@ mca_part_persist_parrived(size_t min_part,
572572
_flag = _flag && req->flags[i];
573573
}
574574
}
575+
}
576+
577+
if(!_flag) {
578+
opal_progress();
575579
}
576580
*flag = _flag;
577581
return err;

0 commit comments

Comments
 (0)