Skip to content

Commit

Permalink
removed unnecessary printing
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Jun 29, 2020
1 parent f808b56 commit 6e326aa
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions source/adios2/helper/adiosMpiHandshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,6 @@ void MpiHandshake::Test()
}
ranksToErase.push_back(rank);
}
else
{
std::cout << std::endl
<< " Src Rank " << m_WorldRank << " Dest Rank "
<< rank << " Stream " << stream << " fails "
<< status.MPI_ERROR << " cancelled "
<< status._cancelled << " count " << status._ucount
<< " source " << status.MPI_SOURCE << " tag "
<< status.MPI_TAG << std::endl;
}
}
for (auto rankToErase : ranksToErase)
{
Expand Down Expand Up @@ -265,16 +255,15 @@ void MpiHandshake::Handshake(const std::string &filename, const char mode,
// wait and check if required RendezvousAppCount reached

auto startTime = std::chrono::system_clock::now();
bool verbose = true;
while (!Check(filename, verbose))
while (!Check(filename, false))
{
std::this_thread::sleep_for(std::chrono::milliseconds(5));
auto nowTime = std::chrono::system_clock::now();
auto duration = std::chrono::duration_cast<std::chrono::seconds>(
nowTime - startTime);
if (duration.count() > timeoutSeconds)
{
Check(filename, verbose);
Check(filename, true);
throw(std::runtime_error("Mpi handshake timeout on Rank " +
std::to_string(m_WorldRank) +
" for Stream " + filename));
Expand Down

0 comments on commit 6e326aa

Please sign in to comment.