From: Augustin Degomme Date: Tue, 25 Feb 2014 13:58:50 +0000 (+0100) Subject: Persistent comms may be reused after a wait, do not put their handle to MPI_REQUEST_NULL X-Git-Tag: v3_11~256 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3391e8197069a1cd28878aec66d0d33e9c22cf06 Persistent comms may be reused after a wait, do not put their handle to MPI_REQUEST_NULL --- diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index b72d6ce9b0..eb2103ec03 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -771,7 +771,8 @@ void smpi_mpi_wait(MPI_Request * request, MPI_Status * status) } finish_wait(request, status); - *request = MPI_REQUEST_NULL; + if (*request != MPI_REQUEST_NULL && !((*request)->flags & PERSISTENT)) + *request = MPI_REQUEST_NULL; // FIXME for a detached send, finish_wait is not called: }