Skip to content

Compiling HDF5 1.8

HDF5 is a data model, library, and file format for storing and managing data.[1]

Installed Versions

There are versions installed by our system vendor, as well as versions compiled locally. The vendor versions are in modules:

hdf5/1.6.10 hdf5_18/1.8.11

and the locally-compiled versions are:

hdf5_18/gcc/1.8.14-mpi hdf5_18/gcc/1.8.14-serial hdf5_18/intel/2015/1.8.14-serial

As implied by the name, the Intel-specific version has been compiled with Intel Composer XE 2015.

In most cases, use one of the serial versions.

Environment

Currently Loaded Modulefiles: 1) shared         2) proteus        3) gcc/4.8.1      4) sge/univa      5) szip/gcc/2.1

Configure

Notes

  • threadsafe and C++ support are mutually exclusive
  • threadsafe and Fortran support are mutually exclusive
  • parallel and C++ support are mutually exclusive

Serial

Environment variables (aside from those set by modulefiles):

CFLAGS   = -O3 -mavx -mfpmath=sse CXXFLAGS = ${CFLAGS} FCFLAGS  = ${CFLAGS}

Configure:

./configure --prefix=/mnt/HA/opt/hdf5_18/gcc/1.8.14-serial --with-szlib=$SZIPDIR \ --disable-parallel \ --enable-fortran --enable-fortran2003 \ --enable-cxx \ --enable-sharedlib-rpath \ --with-default-plugindir=/mnt/HA/opt/hdf5_18/gcc/1.8.14-serial/lib/plugin

Parallel (MPI)

Configure:

./configure --prefix=/mnt/HA/opt/hdf5_18/gcc/1.8.14-mpi --with-szlib=$SZIPDIR \ --enable-parallel \ --enable-fortran --enable-fortran2003 \ --enable-sharedlib-rpath \ --with-default-plugindir=/mnt/HA/opt/hdf5_18/gcc/1.8.14-mpi/lib/plugin

References

[1] HDF5 official website