Instructions for building the OpenMPI-HDF5-NetCDF stack with parallel I/O from source, using the Intel Compiler suite.
Valid for the following packages:
- openmpi-2.1.1
- hdf5-1.8.19
- netcdf-4.4.1.1
- netcdf-fortran-4.4.4
Dependencies:
- zlib
Set OPENMPI
, HDF5
, and NETCDF
to
appropriate install directories.
export OPENMPI=/path/to/install/directory
CC=icc CXX=icpc FC=ifort ./configure --prefix=$OPENMPI
make && make install
export PATH=$OPENMPI/bin:$PATH
export LD_LIBRARY_PATH=$OPENMPI/lib:$LD_LIBRARY_PATH
export HDF5=/path/to/install/directory
CC=mpicc FC=mpif90 CFLAGS=-fPIC ./configure --enable-shared --enable-parallel --enable-fortran --enable-fortran2003 --prefix=$HDF5
make && make install
export NETCDF=/path/to/install/directory
CC=mpicc LDFLAGS=-L$HDF5/lib LIBS=-lhdf5 CPPFLAGS=-I$HDF5/include ./configure --prefix=$NETCDF
make && make install
CC=mpicc FC=mpif90 LDFLAGS=-L$NETCDF/lib CPPFLAGS=-I$NETCDF/include LIBS=-lnetcdf ./configure --prefix=$NETCDF --enable-parallel-tests
make && make install