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 Parallel HDF5 w/ CMake #1027

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jul 2, 2021

Support parallel HDF5 installs that use CMake.
(e.g. first seen with Spack on macOS: spack/spack#24680)

The FindHDF5.cmake variable HDF5_IS_PARALLEL is called HDF5_ENABLE_PARALLEL in hdf5-config.cmake.

Unfortunately, the find_package(HDF5 <version>) check only marks matches in major.minor as compatible. Trying to use CMake 3.19+ version ranges min...max does not work either for HDF5 1.10. Also they raise verbose warnings with FindHDF5.cmake .

Thus, we restructure the tests, pick up the first found HDF5 and warn/error out with a hint how to set another HDF5 variant. Luckily, we support even ancient HDF5 installs, thus this should not be too inconvenient for users.

@ax3l ax3l force-pushed the topic-supportHDF5cmakeParallel branch from 445c8ef to 2eba09c Compare July 2, 2021 20:32
Support parallel HDF5 installs that use CMake.

The FindHDF5.cmake variable `HDF5_IS_PARALLEL` is called
`HDF5_ENABLE_PARALLEL` in hdf5-config.cmake

Unfortunately, the `find_package(HDF5 <version>)` check only marks
matches in `major.minor` as compatible. Trying to use CMake 3.19+
version ranges min...max does not work either for HDF5 1.10. Also
they raise verbose warnings with FindHDF5.cmake .

Thus, we restructure the tests, pick up the first found HDF5 and
warn/error out with a hint how to set another HDF5 variant. Luckily,
we support even ancient HDF5 installs, thus this should not be
too inconvenient for users.
@ax3l ax3l force-pushed the topic-supportHDF5cmakeParallel branch from 2eba09c to 4e2cfd6 Compare July 2, 2021 20:37
@ax3l ax3l merged commit 0e1230c into openPMD:dev Jul 2, 2021
@ax3l ax3l deleted the topic-supportHDF5cmakeParallel branch July 2, 2021 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant