Skip to content

Commit

Permalink
added async flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Junmin Gu committed Jun 13, 2023
1 parent dfc0a31 commit e3d006e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/IO/ADIOS/ADIOS2IOHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2995,6 +2995,19 @@ namespace detail
m_IO.SetParameter("Profile", "Off");
}
}
if (notYetConfigured("AsyncWrite"))
{
if (1 == auxiliary::getEnvNum("OPENPMD_ADIOS2_ASYNC_WRITE", 1) &&
notYetConfigured("AsyncWrite"))
{
m_IO.SetParameter("AsyncWrite", "On");
}
else
{
m_IO.SetParameter("AsyncWrite", "Off");
}
}

#if openPMD_HAVE_MPI
{
auto num_substreams =
Expand Down

0 comments on commit e3d006e

Please sign in to comment.