X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc0a76c21f0bceb0314aee5d62f785ea8009495e..f6361035ba2972dede69bcdf16bc6724bd50bf7d:/teshsuite/smpi/mpich3-test/rma/test4_am.c diff --git a/teshsuite/smpi/mpich3-test/rma/test4_am.c b/teshsuite/smpi/mpich3-test/rma/test4_am.c index 83cb3efc01..0599439a5a 100644 --- a/teshsuite/smpi/mpich3-test/rma/test4_am.c +++ b/teshsuite/smpi/mpich3-test/rma/test4_am.c @@ -3,13 +3,13 @@ * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ -#include "mpi.h" +#include "mpi.h" #include "stdio.h" #include "stdlib.h" #include "mpitest.h" #include "squelch.h" -/* tests passive target RMA on 2 processes. tests the lock-single_op-unlock +/* tests passive target RMA on 2 processes. tests the lock-single_op-unlock optimization. */ /* same as test4.c but uses alloc_mem */ @@ -17,16 +17,16 @@ #define SIZE1 100 #define SIZE2 200 -int main(int argc, char *argv[]) -{ - int rank, nprocs, *A, *B, i; +int main(int argc, char *argv[]) +{ + int rank, nprocs, *A, *B, i; MPI_Comm CommDeuce; MPI_Win win; int errs = 0; - MTest_Init(&argc,&argv); - MPI_Comm_size(MPI_COMM_WORLD,&nprocs); - MPI_Comm_rank(MPI_COMM_WORLD,&rank); + MTest_Init(&argc, &argv); + MPI_Comm_size(MPI_COMM_WORLD, &nprocs); + MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (nprocs < 2) { printf("Run this program with 2 or more processes\n"); @@ -48,38 +48,42 @@ int main(int argc, char *argv[]) } if (rank == 0) { - for (i=0; i