Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
for (unsigned int t = 0; t < m_Threads; ++t)
{
const size_t start = stride * t;
size_t end;
if (t == m_Threads - 1)
{
end = start + stride;
}
else
{
end = start + last;
}
threads.push_back(std::thread(lf_MergeRankRange,
std::ref(nameRankIndices),
std::ref(names), start, end));
}
for (auto &thread : threads)
{
thread.join();
//------------------------------------------------------------------------------
// Explicit instantiation of only public templates
#define declare_template_instantiation(T) \
template void BP1Writer::WriteVariableMetadata( \
const Variable<T> &variable) noexcept; \
Atkins, Charles Vernon
committed
\
template void BP1Writer::WriteVariablePayload( \
const Variable<T> &variable) noexcept;
ADIOS2_FOREACH_TYPE_1ARG(declare_template_instantiation)
#undef declare_template_instantiation
//------------------------------------------------------------------------------
} // end namespace adios2