Skip to content

Commit

Permalink
Merge pull request #3105 from eisenhauer/BP5Reads
Browse files Browse the repository at this point in the history
Refactor BP5 reading to per write block
  • Loading branch information
eisenhauer authored Mar 15, 2022
2 parents cd95088 + 8eaa40a commit 11be158
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 213 deletions.
4 changes: 2 additions & 2 deletions source/adios2/engine/bp5/BP5Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ void BP5Reader::ReadData(const size_t WriterRank, const size_t Timestep,
}
ThisDataPos = helper::ReadValue<uint64_t>(
m_MetadataIndex.m_Buffer, ThisFlushInfo, m_Minifooter.IsLittleEndian);
m_DataFileManager.ReadFile(Destination, RemainingLength, ThisDataPos,
SubfileNum);
m_DataFileManager.ReadFile(Destination, RemainingLength,
ThisDataPos + Offset, SubfileNum);
}

void BP5Reader::PerformGets()
Expand Down
2 changes: 2 additions & 0 deletions source/adios2/helper/adiosMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ namespace adios2
namespace helper
{

const size_t MAX_DIMS = 32;

#ifdef ADIOS2_HAVE_ENDIAN_REVERSE
template <class T>
void CopyEndianReverse(const char *src, const size_t payloadStride, T *dest);
Expand Down
Loading

0 comments on commit 11be158

Please sign in to comment.