From: Arnaud Giersch Date: Fri, 9 May 2014 11:11:38 +0000 (+0200) Subject: Add check for error. X-Git-Tag: v3_11~83^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a8b5faafecff77b1540810d84fc0b387f85952a5 Add check for error. --- diff --git a/src/smpi/colls/gather-ompi.c b/src/smpi/colls/gather-ompi.c index 06a9488aac..fdaa1d7316 100644 --- a/src/smpi/colls/gather-ompi.c +++ b/src/smpi/colls/gather-ompi.c @@ -319,6 +319,7 @@ smpi_coll_tuned_gather_ompi_linear_sync(void *sbuf, int scount, /* wait all second segments to complete */ ret = smpi_mpi_waitall(size, reqs, MPI_STATUSES_IGNORE); + if (ret != MPI_SUCCESS) { line = __LINE__; goto error_hndl; } free(reqs); }