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

Support h5dump command line options for subfiling VFD #3880

Closed
wants to merge 1 commit into from

Conversation

hyoklee
Copy link
Member

@hyoklee hyoklee commented Dec 1, 2023

The three h5dump options

  • --filedriver=subfiling
  • --vfd-name=subfiling
  • --vfd-value=12

do not work for HDF5 stub file.

This PR will allow users to specify one of them to dump HDF5 stub file created by subfiling VFD without relying on setting HDF5_DRIVER environment variable.

See also #3879 about the test stub file.
See also PR #3877. It is required to make --vfd-value=12 work.

@@ -149,6 +149,29 @@ static struct h5_long_options l_opts[] = {{"attribute", require_arg, 'a'},
{"vfd-info", require_arg, '6'},
{NULL, 0, '\0'}};

#if defined(H5_HAVE_PARALLEL) && defined(H5_HAVE_SUBFILING_VFD)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rather than needing to call MPI_Init in every serial tool that wants to support parallel VFDs/VOL connectors, I think it makes more sense to remove the check for whether MPI is initialized in the tools library and then document that a parallel VFD or VOL connector should initialize MPI itself if it needs it and it wasn't already initialized. However, this assumes that systems which were previously broken in this regard (Theta IIRC) are no longer problematic due to the tools trying to open a file with any available VFD when the first attempt fails. In fact, it may even be appropriate to remove that functionality from the tools at this point.

Regardless, we shouldn't generally have functionality in the tools with an #ifdef for a particular VFD.

@glennsong09 glennsong09 added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - Tools Command-line tools like h5dump, includes high-level tools Type - Improvement Improvements that don't add a new feature or functionality labels Dec 4, 2023
@hyoklee hyoklee self-assigned this Dec 11, 2023
@hyoklee hyoklee closed this Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Tools Command-line tools like h5dump, includes high-level tools Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants