Ada, Adapp : The HDF5 library

Introduction

HDF (Hierarchical Data Format) is a format developed by the NCSA (National Center for Supercomputing Applications).

Availability

Available versions:

  • 1.8.9 (default version)
  • 1.8.14

They are available on Ada in sequential and parallel versions.

The HDF5 functions can be called from programs written in C or Fortran.

The libraries are accessible with the module command.

module load hdf5/seq (sequential version)
module load hdf5/mpi (parallel version)

Utilisation

Example of compilation for the sequential version:

  • with the module command:

    $ module load hdf5/seq
    $ mpiifort hdf_seq.f90 -o hdf_seq
  • or without the module command:

    $ mpiifort hdf_seq.f90 -o hdf_seq -Bstatic 
       -I/smplocal/pub/HDF5/1.8.9/seq/include 
       -L/smplocal/pub/HDF5/1.8.9/seq/lib  
       -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -Bdynamic -lz

Example of compilation for the parallel version:

  • with the module command:

    $ module load hdf5/mpi
    $ mpiifort hdf_par.f90 -o hdf_par
  • or without the module command:

    $ mpiifort hdf_par.f90 -o hdf_par -Bstatic  
       -I/smplocal/pub/HDF5/1.8.9/par/include 
       -L/smplocal/pub/HDF5/1.8.9/par/lib  
       -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -Bdynamic -lz
  • Comment: If you do not use the -Bstatic option (or if you use the -Bdynamic option), the linking is done in dynamic mode. In this case, you must enter the following command for the execution:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/smplocal/pub/HDF5/1.8.9/seq/lib

Documentation