Skip to content

Commit

Permalink
Merge pull request #3117 from JasonRuonanWang/ssc
Browse files Browse the repository at this point in the history
SSC: temporary workaround for crusher MPI bug
  • Loading branch information
JasonRuonanWang authored Mar 21, 2022
2 parents 7529cff + def25cc commit adf7164
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/adios2/engine/ssc/SscReaderNaive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ StepStatus SscReaderNaive::BeginStep(const StepMode stepMode,
MPI_Recv(&globalSize, 1, MPI_UNSIGNED_LONG_LONG,
m_WriterMasterStreamRank, 0, m_StreamComm, MPI_STATUS_IGNORE);
m_Buffer.resize(globalSize);
MPI_Recv(m_Buffer.data(), globalSize, MPI_CHAR,
m_WriterMasterStreamRank, 0, m_StreamComm, MPI_STATUS_IGNORE);
// MPI_Recv(m_Buffer.data(), globalSize, MPI_CHAR,
// m_WriterMasterStreamRank, 0, m_StreamComm, MPI_STATUS_IGNORE);
// TODO: revert when the crusher MPI bug is fixed
ssc::Buffer tmp(globalSize);
MPI_Recv(tmp.data(), globalSize, MPI_CHAR, m_WriterMasterStreamRank, 0,
m_StreamComm, MPI_STATUS_IGNORE);
std::memcpy(m_Buffer.data(), tmp.data(), globalSize);
}

MPI_Bcast(&globalSize, 1, MPI_UNSIGNED_LONG_LONG, 0, m_ReaderComm);
Expand Down

0 comments on commit adf7164

Please sign in to comment.