From 83882ccf3505ced4e09791f5bdb1dfb1d3c101d6 Mon Sep 17 00:00:00 2001 From: Ruonan Wang Date: Sat, 22 Feb 2020 18:45:59 -0500 Subject: [PATCH] changed first step from fence mode to post mode --- source/adios2/engine/ssc/SscReader.cpp | 4 ++-- source/adios2/engine/ssc/SscWriter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/adios2/engine/ssc/SscReader.cpp b/source/adios2/engine/ssc/SscReader.cpp index ecd6a7b658..5238fe9435 100644 --- a/source/adios2/engine/ssc/SscReader.cpp +++ b/source/adios2/engine/ssc/SscReader.cpp @@ -113,7 +113,7 @@ StepStatus SscReader::BeginStep(const StepMode stepMode, { m_InitialStep = false; MPI_Win_create(NULL, 0, 1, MPI_INFO_NULL, MPI_COMM_WORLD, &m_MpiWin); - MPI_Win_fence(0, m_MpiWin); + MPI_Win_start(m_MpiAllWritersGroup, 0, m_MpiWin); } else { @@ -161,7 +161,7 @@ void SscReader::EndStep() TAU_SCOPED_TIMER_FUNC(); if (m_CurrentStep == 0) { - MPI_Win_fence(0, m_MpiWin); + MPI_Win_complete(m_MpiWin); MPI_Win_free(&m_MpiWin); SyncReadPattern(); MPI_Win_create(m_Buffer.data(), m_Buffer.size(), 1, MPI_INFO_NULL, diff --git a/source/adios2/engine/ssc/SscWriter.cpp b/source/adios2/engine/ssc/SscWriter.cpp index 299019fa0e..cb69e058d3 100644 --- a/source/adios2/engine/ssc/SscWriter.cpp +++ b/source/adios2/engine/ssc/SscWriter.cpp @@ -140,7 +140,7 @@ void SscWriter::EndStep() SyncWritePattern(); MPI_Win_create(m_Buffer.data(), m_Buffer.size(), 1, MPI_INFO_NULL, MPI_COMM_WORLD, &m_MpiWin); - PutOneSidedFencePull(); + PutOneSidedPostPull(); MPI_Win_free(&m_MpiWin); SyncReadPattern(); MPI_Win_create(m_Buffer.data(), m_Buffer.size(), 1, MPI_INFO_NULL,