X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/98aaf6c28dde5365ca65b9b18182042f45867e70..05808d9852b605a7788964e7dd5152b26a25bc44:/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c diff --git a/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c b/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c index 3bf3d91930..6a866f042c 100644 --- a/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c +++ b/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c @@ -4,7 +4,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -/* +/* * Test of reduce scatter. * Each processor contributes its rank + the index to the reduction, then receives the ith sum * Can be called with any number of processors. @@ -16,9 +16,11 @@ int main( int argc, char **argv ) { - int err = 0, toterr; - int *sendbuf, *recvbuf, *recvcounts; - int size, rank, i, sumval; + int err = 0; + int toterr; + int size; + int rank; + int i; MPI_Comm comm; MPI_Init( &argc, &argv ); @@ -26,15 +28,15 @@ int main( int argc, char **argv ) MPI_Comm_size( comm, &size ); MPI_Comm_rank( comm, &rank ); - sendbuf = (int *) malloc( size * sizeof(int) ); - for (i=0; i