Get HDF5 library version
Computing platforms may have multiple version of the HDF5 library installed. The HDF5 library version currently being used can be determined by the program as in the following examples by language. The HDF5 library can write backward-compatible HDF5 files by HDF5 version bounds. At the time of writing, there is no way to introspect the HDF5 library version required to read a specific HDF5 file.
Matlab
Matlab release vs. HDF5 library version:
Matlab | HDF5 |
---|---|
R2024b (Update 3) | 1.14.4.3 |
R2024a | 1.10.11 |
R2023b | 1.10.10 |
R2022a | 1.10.8 |
R2021b | 1.10.7 |
R2015a | 1.8.12 |
Check Matlab HDF5 library version:
[major, minor, rel] = H5.get_libversion()
Python
Check Python h5py HDF5 library version:
import h5py
print(h5py.h5.get_libversion())
C, C++, Fortran
In C, C++, Fortran, check HDF5 library version with H5get_libversion().
Related: get NetCDF library version