Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 824 Bytes

File metadata and controls

36 lines (25 loc) · 824 Bytes

Build HDF5 scripts

This folder can build HDF5 and ZLIB. Pick CMAKE_INSTALL_PREFIX to be the directory you wish to install HDF5 under.

cmake -B build --install-prefix=$HOME/local

Optionally, build the MPI layer (parallel HDF5)

cmake -B build --install-prefix=$HOME/local -Dhdf5_parallel=on

Optionally, request a specific HDF5 release URL source archive:

cmake -B build \
  -Dhdf5_url=https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.4.3.tar.gz

Then, build and install:

cmake --build build
cmake --install build

compiler wrappers

The HDF5 compiler wrappers will be installed under the install_prefix/bin for macOS and Linux.

  • non-MPI (default): h5cc (C), h5fc (Fortran)
  • MPI: h5pcc (C), h5pfc (Fortran)