Skip to content

Commit 9b2cfd9

Browse files
committed
document HDF5
1 parent 288327c commit 9b2cfd9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pages/spec/metapackages.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,19 @@ Currently verified system configurations are:
102102
MPI C++ support on macOS is missing because homebrew is built with `clang`, whose C++ ABI is incompatible with the GNU C++ ABI needed to link against gfortran.
103103
:::
104104

105+
## HDF5
106+
107+
```{code-block} toml
108+
:emphasize-lines: 2
109+
name = "my_science_app"
110+
dependencies.hdf5 = "*"
111+
```
112+
113+
HDF5 is supported for Fortran, C and C++ languages. The `pkg-config` backend is employed by `fpm` to find a valid local HDF5 installation, so, please insure that `pkg-config` is also available when using this metapackage.
114+
115+
Both the default and the high-level (`HL`) interfaces are linked against if available.
116+
On Ubuntu, special steps are taken on Ubuntu to ensure `HL` are added. On Ubuntu with oneAPI compilers, CMake HDF5 installations are supported (`apt` versions only support `gfortran`).
117+
118+
:::{note}
119+
Codes using HDF5 built with `oneAPI` compilers should not have the `-standard-semantics` flag: it changes module name mangling from `_mp_` to `_MP_` which makes HDF5 modules unavailable.
120+
:::

0 commit comments

Comments
 (0)