X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc0a76c21f0bceb0314aee5d62f785ea8009495e..5ca17dc381bb7fba4f2689143e2080f7549ee0ab:/teshsuite/smpi/mpich3-test/rma/transpose6.c diff --git a/teshsuite/smpi/mpich3-test/rma/transpose6.c b/teshsuite/smpi/mpich3-test/rma/transpose6.c index 09471dae9c..c9f36e18f7 100644 --- a/teshsuite/smpi/mpich3-test/rma/transpose6.c +++ b/teshsuite/smpi/mpich3-test/rma/transpose6.c @@ -3,74 +3,69 @@ * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ -#include "mpi.h" +#include "mpi.h" #include "stdio.h" #include "mpitest.h" -/* This does a local transpose-cum-accumulate operation. Uses +/* This does a local transpose-cum-accumulate operation. Uses vector and hvector datatypes (Example 3.32 from MPI 1.1 Standard). Run on 1 process. */ #define NROWS 100 #define NCOLS 100 -int main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) +{ int rank, nprocs, A[NROWS][NCOLS], B[NROWS][NCOLS], i, j; MPI_Win win; MPI_Datatype column, xpose; int errs = 0; - - MTest_Init(&argc,&argv); - MPI_Comm_rank(MPI_COMM_WORLD,&rank); - MPI_Comm_size(MPI_COMM_WORLD,&nprocs); - if (rank==0) - { - for (i=0; i= 20) - { - printf("Total number of errors: %d\n", errs); + if (errs >= 20) { + printf("Total number of errors: %d\n", errs); } - - MPI_Win_free(&win); + + MPI_Win_free(&win); } MTest_Finalize(errs); - MPI_Finalize(); - return 0; -} + MPI_Finalize(); + return 0; +}