Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit dcae5ac

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 3f158e7 commit dcae5ac

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
@@ -404,6 +404,7 @@ static void* get_coll_handle(void)
404404
OMPI_REQUEST_INIT(ompi_req,false);
405405
ompi_req->req_complete_cb = NULL;
406406
ompi_req->req_status.MPI_ERROR = MPI_SUCCESS;
407+
ompi_req->req_state = OMPI_REQUEST_ACTIVE;
407408
ompi_req->req_free = request_free;
408409
return (void *)ompi_req;
409410
}

0 commit comments

Comments
 (0)