Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add check for error.
[simgrid.git] / src / smpi / colls / gather-ompi.c
index 06a9488..fdaa1d7 100644 (file)
@@ -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);
     }