Skip to content

Read data while concurrently writing it (SWMR - SingleWriter / MulipleReader) #610

Answered by 1uc
eachristgr asked this question in Questions
Discussion options

You must be logged in to vote

From briefly reading the HDF5 documentation it seems that the process requires:

  • Opening/creating an HDF5 file. One might need to state that one wants the modern file format. Hi5 can be used for all of this.
  • Create the required structure in terms of groups and datasets. The dataset you want to grow must be unlimited along the direction you want it to grow. To the best of my knowledge you can do all this in Hi5.
  • You'll need to mark the file as SWMR: https://support.hdfgroup.org/HDF5/doc/RM/RM_H5F.html#File-StartSwmrWrite. The signature is:
    herr_t H5Fstart_swmr_write(hid_t file_id);
    
    You can get the file_id from a Hi5 file.
  • For writing the first thing we find is
    herr_t H5DOappend( hid_t dse…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matz-e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #597 on September 28, 2022 11:50.