Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update parallel compression feature to support multi-dataset I/O #3591
Update parallel compression feature to support multi-dataset I/O #3591
Changes from 1 commit
0be2d39
ccc1dc3
19f5b0a
9df879f
d23ad0e
abf185d
1a0bc64
d051a31
84ad842
7844f4a
7348181
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I needed to move the setting of the optimization method higher up so if something fails in this function the returned value is sane.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe put this in H5D__ioinfo_init() instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this more, I feel like this may even belong higher up in the library since
H5D__read
is called in a few other places. It also seems like good compartmentalization to just haveH5D__ioinfo_init
init theio_info
structure without doing much else.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure we don't call the
mdio_init
callback for datasets where we're skipping I/O, because the callbacks may try to use fields that aren't initialized for the datasetsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, we need to step through the full
count
number of dataset entries and call theirio_term
callbacks, instead of justio_op_init
number of them. Otherwise, if the firstio_op_init
entries were skipped datasets, the latter entries won't get terminated and certain things are left around in memory, such as the cached datasetsel_pieces
array. Unintended reuse of that cached field when doing anH5Dread_multi
followed byH5Dwrite_multi
gave me errors like: