Skip to content

Commit

Permalink
Merge pull request #1983 from JasonRuonanWang/ssc-optimization
Browse files Browse the repository at this point in the history
Optimize one-sided MPI in SSC
  • Loading branch information
JasonRuonanWang authored Feb 23, 2020
2 parents 0c0072e + 83882cc commit 5e19083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/adios2/engine/ssc/SscReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion source/adios2/engine/ssc/SscWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e19083

Please sign in to comment.