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

Open file with in-memory metadata #3651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pnorbert
Copy link
Contributor

@pnorbert pnorbert commented Jun 2, 2023

  • Added a new functionality to an Engine, to serialize metadata in memory after Open(ReadRandomAccess), to send over to another programs that can then use this metadata to open the same dataset with an accelerated function (using metadata from memory instead of retrieving from disk). BP4 and BP5 engine supports this new function.

    Program 1: reader = io.Open(fname, adios2::Mode::ReadRandomAccess);
    char *md;
    size_t mdsize;
    reader.GetMetadata(&md, &mdsize);
    Program 2: reader = io.Open(fname, md, mdsize);

  • Added Transport::CurrentPos() to get the current seek position

Copy link
Member

@eisenhauer eisenhauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this looks reasonable.

…ry after Open(ReadRandomAccess), to send over to another programs that can then use this metadata to open the same dataset with an accelerated function (using metadata from memory instead of retrieving from disk). BP4 and BP5 engine supports this new function.

  Program 1:  reader = io.Open(fname, adios2::Mode::ReadRandomAccess);
              char *md;
              size_t mdsize;
              reader.GetMetadata(&md, &mdsize);
  Program 2:  reader = io.Open(fname, md, mdsize);

* Added Transport::CurrentPos() to get the current seek position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants