X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..a5f8b5a20d3e325ffe4c625d1062c329c4ae165f:/teshsuite/smpi/mpich3-test/coll/allgatherv2.c diff --git a/teshsuite/smpi/mpich3-test/coll/allgatherv2.c b/teshsuite/smpi/mpich3-test/coll/allgatherv2.c index 4a54344c6c..55119d9c6f 100644 --- a/teshsuite/smpi/mpich3-test/coll/allgatherv2.c +++ b/teshsuite/smpi/mpich3-test/coll/allgatherv2.c @@ -57,6 +57,16 @@ int main( int argc, char **argv ) } free( vecout ); } + +#if MTEST_HAVE_MIN_MPI_VERSION(2,2) + MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN); + vecout = (double *) malloc(size * sizeof(double)); + if (MPI_SUCCESS == MPI_Allgatherv(&vecout[rank * recvcounts[rank]], recvcounts[rank], MPI_DOUBLE, + vecout, recvcounts, displs, MPI_DOUBLE, comm)) + errs++; + free(vecout); +#endif + free( displs ); free( recvcounts ); MTestFreeComm( &comm );