X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c57842fe897f53b46f0be3da87f7c996674be7d6..5ca17dc381bb7fba4f2689143e2080f7549ee0ab:/teshsuite/smpi/mpich3-test/rma/locknull.c diff --git a/teshsuite/smpi/mpich3-test/rma/locknull.c b/teshsuite/smpi/mpich3-test/rma/locknull.c index 8b04ce6825..bf79d0c5b7 100644 --- a/teshsuite/smpi/mpich3-test/rma/locknull.c +++ b/teshsuite/smpi/mpich3-test/rma/locknull.c @@ -14,52 +14,51 @@ static char MTEST_Descrip[] = "Locks with no RMA operations"; */ -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int errs = 0; int rank, size, i; - MPI_Comm comm; - MPI_Win win; - int *winbuf, count; + MPI_Comm comm; + MPI_Win win; + int *winbuf, count; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); comm = MPI_COMM_WORLD; - MPI_Comm_rank( comm, &rank ); - MPI_Comm_size( comm, &size ); + MPI_Comm_rank(comm, &rank); + MPI_Comm_size(comm, &size); /* Allocate and initialize buf */ - count = 1000; + count = 1000; - MPI_Alloc_mem( count*sizeof(int), MPI_INFO_NULL, &winbuf ); + MPI_Alloc_mem(count * sizeof(int), MPI_INFO_NULL, &winbuf); - MPI_Win_create( winbuf, count * sizeof(int), sizeof(int), MPI_INFO_NULL, - comm, &win ); + MPI_Win_create(winbuf, count * sizeof(int), sizeof(int), MPI_INFO_NULL, comm, &win); /* Clear winbuf */ - memset( winbuf, 0, count*sizeof(int) ); + memset(winbuf, 0, count * sizeof(int)); - /* Note that for i == rank, this is a useful operation - it allows - the programmer to use direct loads and stores, rather than - put/get/accumulate, to access the local memory window. */ - for (i=0; i