Skip to content

Improve HDF5_BUILD_PARALLEL_TOOLS docs and MFU not-found message#6428

Merged
brtnfld merged 4 commits into
HDFGroup:developfrom
brtnfld:fix/parallel-tools-cmake-docs
Jun 3, 2026
Merged

Improve HDF5_BUILD_PARALLEL_TOOLS docs and MFU not-found message#6428
brtnfld merged 4 commits into
HDFGroup:developfrom
brtnfld:fix/parallel-tools-cmake-docs

Conversation

@brtnfld

@brtnfld brtnfld commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator
  • CMakeBuildOptions.cmake: expand the HDF5_BUILD_PARALLEL_TOOLS option description to name the tool it builds (h5dwalk), list all three required external libraries (MFU, CIRCLE, DTCMP), link to the mpiFileUtils project, and note that HDF5_ENABLE_PARALLEL=ON is also required.
  • config/cmake/FindMFU.cmake: replace the dead/logic-inverted error block (wrong VERBOSE/FATAL_ERROR branching, reference to non-existent MFU_INSTALL variable) with a STATUS message that fires before find_package_handle_standard_args terminates configure. The message names all three required libraries, provides their GitHub URLs, and explains that MFU_ROOT is the environment variable to set for a standard mpiFileUtils install.Fixes [Cmake Building Question] Parallel tools or Parallel ? #2265

…message

The option description for HDF5_BUILD_PARALLEL_TOOLS was too terse to be
useful — it did not mention the required MFU, CIRCLE, or DTCMP external
libraries, nor that HDF5_ENABLE_PARALLEL must also be ON. Expand it with
the dependency list and a link to the mpiFileUtils project.

The failure block in FindMFU.cmake had a logic inversion (VERBOSE message
gated on NOT QUIET; FATAL_ERROR gated on QUIET+REQUIRED) and referenced a
non-existent MFU_INSTALL variable. Replace it with a single STATUS message
that names all three required libraries, gives their GitHub URLs, and
explains that MFU_ROOT is an environment variable covering all three.
Comment thread CMakeBuildOptions.cmake Outdated
option (HDF5_BUILD_DOC "Build documentation" OFF)

option (HDF5_BUILD_PARALLEL_TOOLS "Build Parallel HDF5 Tools" OFF)
option (HDF5_BUILD_PARALLEL_TOOLS "Build h5dwalk parallel tool. Requires HDF5_ENABLE_PARALLEL=ON and MFU/CIRCLE/DTCMP (mpiFileUtils)." OFF)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For the sake of line width and if there may be other parallel-enabled tools in the future, I think it makes sense to keep this description something short like "Build parallel-specific HDF5 tools". Arguably, ph5diff and part of h5perf should have been moved under this option when it was created.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

what about "Build MPI-enabled HDF5 tools"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems reasonable to me. May be more misleading as that would include ph5diff and h5perf as well, but I think that's maybe a separate discussion.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

changed, it seems that this option was not fully thought through regarding its final intent.

Comment thread config/cmake/FindMFU.cmake Outdated
- CMakeBuildOptions.cmake: rephrase HDF5_BUILD_PARALLEL_TOOLS description
  to "Build MPI-enabled HDF5 tools" (shorter, forward-compatible)
- config/cmake/FindMFU.cmake: restore FATAL_ERROR for missing MFU so
  configure fails when required libraries are absent
jhendersonHDF
jhendersonHDF previously approved these changes Jun 2, 2026
@lrknox

lrknox commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

docs/AutotoolsToCMakeOptions.md line 62 also has the description "Build Parallel HDF5 Tools", and similarly docs/INSTALL_CMake_options.md line 198 has " enables building of parallel HDF5 tools". Should those also be updated to "Build MPI-enabled HDF5 tools"?

@jhendersonHDF

Copy link
Copy Markdown
Collaborator

docs/AutotoolsToCMakeOptions.md line 62 also has the description "Build Parallel HDF5 Tools", and similarly docs/INSTALL_CMake_options.md line 198 has " enables building of parallel HDF5 tools". Should those also be updated to "Build MPI-enabled HDF5 tools"?

Yes, those should probably be updated as well

…F5 tools"

Consistent wording across AutotoolsToCMakeOptions.md and INSTALL_CMake_options.md.
@brtnfld

brtnfld commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

done

@brtnfld brtnfld merged commit a957dd4 into HDFGroup:develop Jun 3, 2026
136 of 137 checks passed
@github-project-automation github-project-automation Bot moved this from To be triaged to Done in HDF5 - TRIAGE & TRACK Jun 3, 2026
@brtnfld brtnfld deleted the fix/parallel-tools-cmake-docs branch June 3, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Cmake Building Question] Parallel tools or Parallel ?

3 participants