X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3eafc8614456c28407dd5ce45198bcf83a963615..b382315f0693083344eb9a25a8fc37b7091bddc7:/teshsuite/smpi/mpich3-test/coll/reduce.c diff --git a/teshsuite/smpi/mpich3-test/coll/reduce.c b/teshsuite/smpi/mpich3-test/coll/reduce.c index ad09c9bf8f..d86503e28a 100644 --- a/teshsuite/smpi/mpich3-test/coll/reduce.c +++ b/teshsuite/smpi/mpich3-test/coll/reduce.c @@ -13,54 +13,47 @@ static char MTEST_Descrip[] = "A simple test of Reduce with all choices of root process"; */ -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int errs = 0; int rank, size, root; int *sendbuf, *recvbuf, i; - int minsize = 2, count; - MPI_Comm comm; + int minsize = 2, count; + MPI_Comm comm; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); - while (MTestGetIntracommGeneral( &comm, minsize, 1 )) { - if (comm == MPI_COMM_NULL) continue; - /* Determine the sender and receiver */ - MPI_Comm_rank( comm, &rank ); - MPI_Comm_size( comm, &size ); - - for (count = 1; count < 130000; count = count * 2) { - sendbuf = (int *)malloc( count * sizeof(int) ); - recvbuf = (int *)malloc( count * sizeof(int) ); - for (root = 0; root < size; root ++) { - for (i=0; i