Skip to content

Commit 9093855

Browse files
Valentin Petrovjladd-mlnx
authored andcommitted
BufFix for coll/hcoll: coll_request must be set to ACTIVE when alloced
If the state of the request is not set to OMPI_REQUEST_ACTIVE then MPI_Test would immediately signal such request completed while hcoll may still be working on it. Signed-off-by: Joshua Ladd <[email protected]>
1 parent babeac7 commit 9093855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/coll/hcoll/coll_hcoll_rte.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ static void* get_coll_handle(void)
398398
OMPI_REQUEST_INIT(ompi_req,false);
399399
ompi_req->req_complete_cb = NULL;
400400
ompi_req->req_status.MPI_ERROR = MPI_SUCCESS;
401+
ompi_req->req_state = OMPI_REQUEST_ACTIVE;
401402
ompi_req->req_free = request_free;
402403
return (void *)ompi_req;
403404
}

0 commit comments

Comments
 (0)