Skip to content

Commit 66cda4f

Browse files
authored
HDF5 metapackage (#146)
1 parent 9db6c02 commit 66cda4f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [ubuntu-latest, macos-11, windows-latest]
12+
os: [ubuntu-latest, macos-12, windows-latest]
1313
gcc: [10]
1414

1515
steps:

pages/spec/metapackages.md

+17
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,20 @@ 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 to ensure `HL` are added.
117+
- On Ubuntu with oneAPI compilers, `CMake` HDF5 installations are supported (`apt` versions only support `gfortran`).
118+
119+
:::{note}
120+
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.
121+
:::

0 commit comments

Comments
 (0)