Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the compilation of MPICH3 tests with the absolute paranoid flags (enable_maintainer)
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 3 Mar 2017 14:44:43 +0000 (15:44 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 3 Mar 2017 14:44:57 +0000 (15:44 +0100)
teshsuite/smpi/mpich3-test/pt2pt/recv_any.c

index c3db3e2..39e2f3d 100644 (file)
@@ -25,7 +25,7 @@ int main(int argc, char *argv[])
     int rank = 0, nprocs = 0;
     int i = 0, x = 0, dst = 0, src = 0, tag = 0;
     MPI_Status stat;
-#if TEST_NB
+#ifdef TEST_NB
     MPI_Request req;
 #endif
     int sbuf[BUFSIZE], rbuf[BUFSIZE];
@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
     for (x = 0; x < ITER; x++) {
         tag = x;
         if (rank == dst) {
-#if TEST_NB
+#ifdef TEST_NB
             MPI_Irecv(rbuf, sizeof(int) * BUFSIZE, MPI_CHAR, MPI_ANY_SOURCE, tag, MPI_COMM_WORLD,
                       &req);
             MPI_Wait(&req, &stat);