From dcae5ac6af7d480a18e434faaeb0060044ba53ff Mon Sep 17 00:00:00 2001 From: Valentin Petrov Date: Thu, 21 Jan 2016 10:19:23 +0200 Subject: [PATCH] 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 --- ompi/mca/coll/hcoll/coll_hcoll_rte.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/mca/coll/hcoll/coll_hcoll_rte.c b/ompi/mca/coll/hcoll/coll_hcoll_rte.c index e9fc4a6b71..9c74f52b18 100644 --- a/ompi/mca/coll/hcoll/coll_hcoll_rte.c +++ b/ompi/mca/coll/hcoll/coll_hcoll_rte.c @@ -404,6 +404,7 @@ static void* get_coll_handle(void) OMPI_REQUEST_INIT(ompi_req,false); ompi_req->req_complete_cb = NULL; ompi_req->req_status.MPI_ERROR = MPI_SUCCESS; + ompi_req->req_state = OMPI_REQUEST_ACTIVE; ompi_req->req_free = request_free; return (void *)ompi_req; }