Skip to content

Latest commit

 

History

History

scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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 -DCMAKE_INSTALL_PREFIX=~/local
cmake --build build

Optionally, build the MPI layer (parallel HDF5)

cmake -B build -DCMAKE_INSTALL_PREFIX=~/local -Dhdf5_parallel=on
cmake --build build

Optionally, request a specific HDF5 release URL source archive and/or ZLIB URL source archive URL:

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

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)