X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f3d85e5d91158b55c5dcd30d0400059574e4425..8bd25d18b5b13783fe7fa8e1c7b3961f2bf5e0dc:/teshsuite/smpi/mpich3-test/perf/nestvec2.c diff --git a/teshsuite/smpi/mpich3-test/perf/nestvec2.c b/teshsuite/smpi/mpich3-test/perf/nestvec2.c index c54400f7d4..c32854f75e 100644 --- a/teshsuite/smpi/mpich3-test/perf/nestvec2.c +++ b/teshsuite/smpi/mpich3-test/perf/nestvec2.c @@ -30,182 +30,181 @@ static int verbose = 0; -int main( int argc, char **argv ) +int main(int argc, char **argv) { - int vcount, vstride; - int32_t counts[2]; - int v2stride, typesize, packsize, i, position, errs = 0; - double *outbuf, *outbuf2; - double *vsource; + int vcount, vstride; + int32_t counts[2]; + int packsize, i, position, errs = 0; + double *outbuf, *outbuf2; + double *vsource; MPI_Datatype vtype, stype; - MPI_Aint lb, extent; - double t0, t1; - double tspack, tvpack, tmanual; - int ntry; - int blocklengths[2]; - MPI_Aint displacements[2]; + double t0, t1; + double tspack, tvpack, tmanual; + int ntry; + int blocklengths[2]; + MPI_Aint displacements[2]; MPI_Datatype typesArray[2]; - MPI_Init( &argc, &argv ); - - /* Create a struct consisting of a two 32-bit ints, followed by a - vector of stride 3 but count 128k (less than a few MB of data area) */ - vcount = 128000; + MPI_Init(&argc, &argv); + + /* Create a struct consisting of a two 32-bit ints, followed by a + * vector of stride 3 but count 128k (less than a few MB of data area) */ + vcount = 128000; vstride = 3; - MPI_Type_vector( vcount, 1, vstride, MPI_DOUBLE, &vtype ); + MPI_Type_vector(vcount, 1, vstride, MPI_DOUBLE, &vtype); - vsource = (double *)malloc( (vcount + 1) * (vstride + 1) * sizeof(double) ); + vsource = (double *) malloc((vcount + 1) * (vstride + 1) * sizeof(double)); if (!vsource) { - fprintf( stderr, "Unable to allocate vsource\n" ); - MPI_Abort( MPI_COMM_WORLD, 1 ); + fprintf(stderr, "Unable to allocate vsource\n"); + MPI_Abort(MPI_COMM_WORLD, 1); } - for (i=0; i