X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/50bc81a8526eb95a52e6a4b4a2ae1be94dfb24c1..2bb3a0d042a8a1deb91c18dba0cbdf42237413d4:/teshsuite/smpi/mpich3-test/comm/cmfree.c diff --git a/teshsuite/smpi/mpich3-test/comm/cmfree.c b/teshsuite/smpi/mpich3-test/comm/cmfree.c index 2274df8617..304401925d 100644 --- a/teshsuite/smpi/mpich3-test/comm/cmfree.c +++ b/teshsuite/smpi/mpich3-test/comm/cmfree.c @@ -16,104 +16,104 @@ static char MTEST_Descrip[] = "Test that communicators have reference count sema #define NELM 128 #define NCOMM 1020 -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int errs = 0; int rank, size, source, dest, i; - MPI_Comm comm; - MPI_Comm tmpComm[NCOMM]; - MPI_Status status; - MPI_Request req; - int *buf=0; + MPI_Comm comm; + MPI_Comm tmpComm[NCOMM]; + MPI_Status status; + MPI_Request req; + int *buf = 0; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); - MPI_Comm_dup( MPI_COMM_WORLD, &comm ); + MPI_Comm_dup(MPI_COMM_WORLD, &comm); /* This is similar to the datatype test, except that we post - an irecv on a simple data buffer but use a rank-reordered communicator. - In this case, an error in handling the reference count will most - likely cause the program to hang, so this should be run only - if (a) you are confident that the code is correct or (b) - a timeout is set for mpiexec - */ + * an irecv on a simple data buffer but use a rank-reordered communicator. + * In this case, an error in handling the reference count will most + * likely cause the program to hang, so this should be run only + * if (a) you are confident that the code is correct or (b) + * a timeout is set for mpiexec + */ - MPI_Comm_rank( comm, &rank ); - MPI_Comm_size( comm, &size ); + MPI_Comm_rank(comm, &rank); + MPI_Comm_size(comm, &size); if (size < 2) { - fprintf( stderr, "This test requires at least two processes." ); - MPI_Abort( MPI_COMM_WORLD, 1 ); - exit(1); + fprintf(stderr, "This test requires at least two processes."); + MPI_Abort(MPI_COMM_WORLD, 1); } - source = 0; - dest = size - 1; + source = 0; + dest = size - 1; if (rank == dest) { - buf = (int *)malloc( NELM * sizeof(int) ); - for (i=0; i