Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove warnings in mpich c tests
authorAugustin Degomme <augustin.degomme@imag.fr>
Fri, 27 Jun 2014 12:50:14 +0000 (14:50 +0200)
committerAugustin Degomme <augustin.degomme@imag.fr>
Fri, 27 Jun 2014 13:03:22 +0000 (15:03 +0200)
teshsuite/smpi/mpich3-test/rma/accfence2.c
teshsuite/smpi/mpich3-test/rma/accfence2_am.c

index 4bf0f93..4366e10 100644 (file)
@@ -20,11 +20,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 );
@@ -39,10 +38,8 @@ int main( int argc, char *argv[] )
        MPI_Comm_rank( comm, &rank );
        MPI_Comm_size( comm, &size );
        source = 0;
-       dest   = size - 1;
        
        for (count = 1; 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))
               For large machines (size large), this can exceed the 
index 11d2fb7..96c6516 100644 (file)
@@ -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))