Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make the mpich3 tests compile with the warnings on my machine
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 16 Apr 2017 20:16:00 +0000 (22:16 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 16 Apr 2017 20:16:00 +0000 (22:16 +0200)
teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_excl.c

index 607ca12..143e067 100644 (file)
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
                            (void *) tail_ptr.disp);
 
                 MPI_Win_lock(MPI_LOCK_EXCLUSIVE, tail_ptr.rank, 0, llist_win);
-#if USE_ACC
+#ifdef USE_ACC
                 MPI_Accumulate(&new_elem_ptr, sizeof(llist_ptr_t), MPI_BYTE, tail_ptr.rank,
                                (MPI_Aint) & (((llist_elem_t *) tail_ptr.disp)->next),
                                sizeof(llist_ptr_t), MPI_BYTE, MPI_REPLACE, llist_win);
@@ -155,7 +155,7 @@ int main(int argc, char **argv)
                 llist_ptr_t next_tail_ptr;
 
                 MPI_Win_lock(MPI_LOCK_EXCLUSIVE, tail_ptr.rank, 0, llist_win);
-#if USE_ACC
+#ifdef USE_ACC
                 MPI_Get_accumulate(NULL, 0, MPI_DATATYPE_NULL, &next_tail_ptr,
                                    sizeof(llist_ptr_t), MPI_BYTE, tail_ptr.rank,
                                    (MPI_Aint) & (((llist_elem_t *) tail_ptr.disp)->next),