Skip to content

Commit

Permalink
one sided post pull mode also worked
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Jun 16, 2020
1 parent dac2aae commit ba786bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/adios2/engine/ssc/SscWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void SscWriter::PutOneSidedPostPull()
{
TAU_SCOPED_TIMER_FUNC();
MPI_Win_post(m_MpiAllReadersGroup, 0, m_MpiWin);
MPI_Win_wait(m_MpiWin);
m_NeedWait = true;
}

void SscWriter::PutOneSidedFencePull()
Expand Down Expand Up @@ -147,7 +147,8 @@ void SscWriter::EndStep()
SyncWritePattern();
MPI_Win_create(m_Buffer.data(), m_Buffer.size(), 1, MPI_INFO_NULL,
m_StreamComm, &m_MpiWin);
PutOneSidedPostPull();
MPI_Win_post(m_MpiAllReadersGroup, 0, m_MpiWin);
MPI_Win_wait(m_MpiWin);
MPI_Win_free(&m_MpiWin);
SyncReadPattern();
MPI_Win_create(m_Buffer.data(), m_Buffer.size(), 1, MPI_INFO_NULL,
Expand Down Expand Up @@ -206,6 +207,7 @@ void SscWriter::MpiWait()
}
else if (m_MpiMode == "onesidedpostpull")
{
MPI_Win_wait(m_MpiWin);
}
m_NeedWait = false;
}
Expand Down

0 comments on commit ba786bb

Please sign in to comment.