X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9c9e08948a8387e9e8ecb0fe67ab6b94ec2a66f..53ef75ab57752782c82fd7c106626a772940dd0a:/teshsuite/smpi/mpich3-test/coll/alltoallv.c diff --git a/teshsuite/smpi/mpich3-test/coll/alltoallv.c b/teshsuite/smpi/mpich3-test/coll/alltoallv.c index 844596e32f..bc286c2d87 100644 --- a/teshsuite/smpi/mpich3-test/coll/alltoallv.c +++ b/teshsuite/smpi/mpich3-test/coll/alltoallv.c @@ -15,131 +15,121 @@ Because there are separate send and receive types to alltoallv, there need to be tests to rearrange data on the fly. Not done yet. - + The first test sends i items to processor i from all processors. Currently, the test uses only MPI_INT; this is adequate for testing systems that use point-to-point operations */ -int main( int argc, char **argv ) +int main(int argc, char **argv) { MPI_Comm comm; - int *sbuf, *rbuf; - int rank, size; - int *sendcounts, *recvcounts, *rdispls, *sdispls; - int i, j, *p, err; - - MTest_Init( &argc, &argv ); + int *sbuf, *rbuf; + int rank, size; + int *sendcounts, *recvcounts, *rdispls, *sdispls; + int i, j, *p, err; + + MTest_Init(&argc, &argv); err = 0; - - while (MTestGetIntracommGeneral( &comm, 2, 1 )) { - if (comm == MPI_COMM_NULL) continue; - - /* Create the buffer */ - MPI_Comm_size( comm, &size ); - MPI_Comm_rank( comm, &rank ); - sbuf = (int *)malloc( size * size * sizeof(int) ); - rbuf = (int *)malloc( size * size * sizeof(int) ); - if (!sbuf || !rbuf) { - fprintf( stderr, "Could not allocated buffers!\n" ); - MPI_Abort( comm, 1 ); - exit(1); - } - - /* Load up the buffers */ - for (i=0; i