Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFS upstream #2577

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions source/adios2/engine/ssc/SscWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ StepStatus SscWriter::BeginStep(StepMode mode, const float timeoutSeconds)
m_GlobalReadPattern.resize(m_StreamSize);
}

if (m_WriterDefinitionsLocked && m_ReaderSelectionsLocked)
if (m_CurrentStep > 1)
{
if (m_CurrentStep > 1)
if (m_WriterDefinitionsLocked && m_ReaderSelectionsLocked)
{
MpiWait();
}
else
{
MPI_Win_free(&m_MpiWin);
}
}

return StepStatus::OK;
Expand Down Expand Up @@ -150,7 +154,6 @@ void SscWriter::EndStep()
SyncWritePattern();
MPI_Win_create(m_Buffer.data(), m_Buffer.size(), 1, MPI_INFO_NULL,
m_StreamComm, &m_MpiWin);
MPI_Win_free(&m_MpiWin);
}
}
}
Expand Down Expand Up @@ -429,6 +432,7 @@ void SscWriter::DoClose(const int transportIndex)
}
else
{
MPI_Win_free(&m_MpiWin);
SyncWritePattern(true);
}
}
Expand Down
2 changes: 2 additions & 0 deletions thirdparty/ffs/ffs/cod/cod.y
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ gen_anon()
#define yyrestart cod_yyrestart
#define yywrap cod_yywrap
#define yyerror cod_yyerror
#define yylineno cod_yylineno
#define yy_flex_debug cod_yy_flex_debug
#define yy_create_buffer cod_yy_create_buffer
#define yy_delete_buffer cod_yy_delete_buffer
#define yy_flush_buffer cod_yy_flush_buffer
Expand Down
Loading