Skip to content

Commit 5e2a2c0

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 70787d1 commit 5e2a2c0

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
@@ -406,6 +406,7 @@ static void* get_coll_handle(void)
406406
OMPI_REQUEST_INIT(ompi_req,false);
407407
ompi_req->req_complete_cb = NULL;
408408
ompi_req->req_status.MPI_ERROR = MPI_SUCCESS;
409+
ompi_req->req_state = OMPI_REQUEST_ACTIVE;
409410
ompi_req->req_free = request_free;
410411
return (void *)ompi_req;
411412
}

0 commit comments

Comments
 (0)