hdf5

Version:

1.14.0, 1.10.1

Category:

data

Cluster:

Vali

Author / Distributor

https://portal.hdfgroup.org/display/support

Description

HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. Key features:

  • Hierarchical organization of data

  • Parallel I/O and MPI integration

  • Compression and chunking

  • C, C++, Fortran, and Python APIs

Documentation

$ h5cc --help

Usage: h5cc [OPTIONS] <source files> -o <output binary>

h5cc is a wrapper script to compile HDF5 C applications.
It adds the necessary include and library paths automatically.

Common options:
  --help        Show this help message
  -show         Show compiler and flags without compiling
  -echo         Echo compilation command
  -nocompile    Print compile command but do not execute it

For other languages:
  h5c++   : HDF5 C++ applications
  h5fc    : HDF5 Fortran applications

Official documentation:
  https://portal.hdfgroup.org/display/HDF5/HDF5

Examples/Usage

  • Load the HDF5 module:

    $ module load data/HDF5/1.14.0-gompi-2023a
    
  • Unload the module:

    $ module unload data/HDF5/1.14.0-gompi-2023a
    
  • Compile a C program using the h5cc wrapper:

    h5cc my_program.c -o my_program
    
  • Compile a C++ program:

    h5c++ my_program.cpp -o my_program
    
  • Compile a Fortran program:

    h5fc my_program.f90 -o my_program
    

Installation

Source code is obtained from The HDF Group