Skip to content
Snippets Groups Projects
Commit d33f9292 authored by William F Godoy's avatar William F Godoy
Browse files

Fixed an introduced bug in BPFileWriter

To do:
Fixed the behavior of the generated profiling.log (should be on by
default)
parent 52cac657
No related branches found
No related tags found
1 merge request!83Bpthreads
......@@ -259,19 +259,22 @@ void BPFileWriter::Close(const int transportIndex)
m_BP1Writer.Close(*m_Transports[transportIndex], m_IsFirstClose, false);
}
bool allClose = true;
for (auto &transport : m_Transports)
if (m_BP1Writer.m_MetadataSet.Log.IsActive == true)
{
if (transport->m_IsOpen == true)
bool allClose = true;
for (auto &transport : m_Transports)
{
allClose = false;
break;
if (transport->m_IsOpen == true)
{
allClose = false;
break;
}
}
}
if (allClose == true) // aggregate and write profiling.log
{
m_BP1Writer.DumpProfilingLogFile(m_Name, m_RankMPI, m_Transports);
if (allClose == true) // aggregate and write profiling.log
{
m_BP1Writer.DumpProfilingLogFile(m_Name, m_RankMPI, m_Transports);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment