diff --git a/one_sided.cpp b/one_sided.cpp index 5cf47ef..296c9c2 100644 --- a/one_sided.cpp +++ b/one_sided.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) { std::cout << "rank " << rank << " put to " << target << std::endl << std::flush; MPI_Put(&rank, 1, MPI_INT, target, 0, 1, MPI_INT, win); - MPI_Barrier(MPI_COMM_WORLD); + MPI_Win_fence(0, win); int err = 0;