The National Institute for Computational Sciences



Category: Libraries-IO


The Hierarchical Data Format (HDF) project involves the development and support of software and file formats for scientific data management. The HDF software includes I/O libraries and tools for analyzing, visualizing, and converting scientific data.

There are two HDF formats, HDF (4.x and previous releases) and HDF5. These formats are completely different and NOT compatible, but conversion software is available for converting HDF4 data to HDF5, and vice versa.

For more information see the HDF home page.


HDF5 is available as a module. Cray and NICS both provide some hdf5 builds: a "module avail" will show the various hdf5 modules available. There are parallel and serial versions of HDF5.

The Cray HDF5 modules [usually] work seemlessly within the environment, and so just the act of loading the appropriate hdf5 module will link your code with the hdf5 libraries. These installations were NOT built with SZIP compression support. Note: if you change the PrgEnv AFTER loading an hdf5 module, you must "update" or reload the hdf5 modulefile - this is true for both Cray and NICS built hdf5 libraries.

With NICS HDF modules, the following examples can be used to compile and link your program (hdf5example.f90) to the HDF libraries. These builds were compiled with SZIP support.

For parallel HDF5:

  ifort hyperslab.f90 ${HDF5_FLIB}
The environment variables given above are set in the module file - they are locally defined.
  icc -o hdf5example.x hdf5example.c ${HDF5_CLIB}

Note the difference between HDF5_FLIB and HDF5_CLIB for Fortran and C, respectively.


This package has the following support level : Supported

Available Versions

Version Available Builds