X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a8aa2d7d477df7565dc963b9abcb571e8f6d87e2..7a3930bebb8c99bd8cd8f45edc2b5f3b4b122441:/teshsuite/smpi/mpich3-test/rma/accfence2_am.c diff --git a/teshsuite/smpi/mpich3-test/rma/accfence2_am.c b/teshsuite/smpi/mpich3-test/rma/accfence2_am.c index 11d2fb770a..96c651635e 100644 --- a/teshsuite/smpi/mpich3-test/rma/accfence2_am.c +++ b/teshsuite/smpi/mpich3-test/rma/accfence2_am.c @@ -22,11 +22,10 @@ static char MTEST_Descrip[] = "Test MPI_Accumulate with fence"; int main( int argc, char *argv[] ) { int errs = 0; - int rank, size, source, dest; + int rank, size, source; int minsize = 2, count, i; MPI_Comm comm; MPI_Win win; - MPI_Datatype datatype; int *winbuf, *sbuf; MTest_Init( &argc, &argv ); @@ -41,10 +40,9 @@ int main( int argc, char *argv[] ) MPI_Comm_rank( comm, &rank ); MPI_Comm_size( comm, &size ); source = 0; - dest = size - 1; for (count = 32768; count < 65000; count = count * 2) { - datatype = MPI_INT; + /* We compare with an integer value that can be as large as size * (count * count + (1/2)*(size-1))