Skip to content

Commit

Permalink
Make adios_iotest work with SST again: add CurrentStep() to SstWriter…
Browse files Browse the repository at this point in the history
… and initialize multithreaded MPI in adios_iotest.
  • Loading branch information
pnorbert committed Feb 10, 2023
1 parent c01b496 commit 1476615
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions source/adios2/engine/sst/SstWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ StepStatus SstWriter::BeginStep(StepMode mode, const float timeout_sec)
return StepStatus::OK;
}

size_t SstWriter::CurrentStep() const { return m_WriterStep; }

void SstWriter::MarshalAttributes()
{
PERFSTUBS_SCOPED_TIMER_FUNC();
Expand Down
1 change: 1 addition & 0 deletions source/adios2/engine/sst/SstWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SstWriter : public Engine

StepStatus BeginStep(StepMode mode,
const float timeoutSeconds = -1.0) final;
size_t CurrentStep() const final;
void PerformPuts() final;
void EndStep() final;
void Flush(const int transportIndex = -1) final;
Expand Down
8 changes: 1 addition & 7 deletions source/utils/adios_iotest/adios_iotest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@
int main(int argc, char *argv[])
{
int provided;
int threadSupportLevel = MPI_THREAD_SINGLE;

if (std::string(argv[1]) == "SST")
{
threadSupportLevel = MPI_THREAD_MULTIPLE;
}

int threadSupportLevel = MPI_THREAD_MULTIPLE;
MPI_Init_thread(&argc, &argv, threadSupportLevel, &provided);

Settings settings;
Expand Down

0 comments on commit 1476615

Please sign in to comment.