Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try new fix for rget_testall.
authorAugustin Degomme <augustin.degomme@unibas.ch>
Thu, 25 Jan 2018 00:39:33 +0000 (01:39 +0100)
committerAugustin Degomme <augustin.degomme@unibas.ch>
Thu, 25 Jan 2018 00:39:33 +0000 (01:39 +0100)
The test seems buggy, as the initialization part on one process may not be started when the other one reaches the second part, due to the way the locks are done.

Add a barrier to separate initialization from computation.

teshsuite/smpi/mpich3-test/rma/rget-testall.c

index 4f3eec2..f4e0dd3 100644 (file)
@@ -38,7 +38,7 @@ int main(int argc, char **argv)
     baseptr[0] = 1;
     baseptr[1] = 2;
     MPI_Win_unlock(rank, win);
-
+    MPI_Barrier(MPI_COMM_WORLD);
     /* Issue request-based get with testall. */
     MPI_Win_lock_all(0, win);
     MPI_Rget(&val1, 1, MPI_INT, 0, 0, 1, MPI_INT, win, &reqs[0]);