Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This particular RMA test is filled with stupid calls... We send errors for most of...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 18 Aug 2019 21:36:50 +0000 (23:36 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 18 Aug 2019 21:36:50 +0000 (23:36 +0200)
So let's put that to rest by setting MPI_ERRORS_RETURN for this one.

teshsuite/smpi/mpich3-test/rma/badrma.c

index 09fd3d7..8c642c6 100644 (file)
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
     types[3] = MPI_DOUBLE;
 
     MPI_Win_create(win_buf, SIZE * sizeof(int), sizeof(int), MPI_INFO_NULL, MPI_COMM_WORLD, &win);
     types[3] = MPI_DOUBLE;
 
     MPI_Win_create(win_buf, SIZE * sizeof(int), sizeof(int), MPI_INFO_NULL, MPI_COMM_WORLD, &win);
-
+    MPI_Win_set_errhandler(win, MPI_ERRORS_RETURN);
     MPI_Win_fence(0, win);
 
     if (rank == 0) {
     MPI_Win_fence(0, win);
 
     if (rank == 0) {