From f94be3af55c9a559bcc4334babe2d25cf26c8613 Mon Sep 17 00:00:00 2001 From: Carl William Pearson Date: Fri, 30 Apr 2021 15:44:45 -0600 Subject: [PATCH] replace barrier with fence --- one_sided.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;