Compiling HDF5-1.8.17 with Intel-15.0.6 and Intel-MPI-5.0.6


Step 1: Preparing the prerequisites

$ vim .bashrc
source /usr/local/intel_2015/bin/compilervars.sh intel64
source /usr/local/intel_2015/impi/5.0.3.049/bin64/mpivars.sh intel64
source /usr/local/intel_2015/mkl/bin/mklvars.sh intel64
export CC=icc
export CXX=icpc
export F77=ifort
export MPICC=mpicc
export MPICXX=mpiicpc
export CFLAGS="-O3 -xHost -fno-alias -align"
export FFLAGS="-O3 -xHost -fno-alias -align"
export CXXFLAGS="-O3 -xHost -fno-alias -align"
export FFlags="-I/usr/local/intel_2015/impi/5.0.3.049/include64 -L/usr/local/intel_2015/impi/5.0.3.049/lib64"

Step 2: Compile zlib-1

See Compile zlib-1.2.8 with Intel-15.0.6

Step 3: Configure the HDF5

$ tar -zxvf hdf5-1.8.17.tar.gz
$ cd hdf5-1.8.17
$ ./configure --prefix=/usr/local/hdf5-1.8.17 --enable-fortran --enable-cxx
$ make
$ make check
$ make install

References

  1. Building HDF5* with Intel® compilers
  2. Obtaining The Latest HDF5 Software
Advertisements

One thought on “Compiling HDF5-1.8.17 with Intel-15.0.6 and Intel-MPI-5.0.6

  1. SZLIB:

    export CC=icc
    export CXX=icpc
    export F77=ifort
    export CFLAGS=’-O3 -xHost -ip’
    export CXXFLAGS=’-O3 -xHost -ip’
    export FFLAGS=’-O3 -xHost -ip’
    tar -zxvf szip-2.1.tar.gz
    cd szip-2.1
    ./configure –prefix=/home/user/Mohid/szip-2.1
    make
    make check
    make install

    ZLIB:

    export CC=icc
    export CFLAGS=’-O3 -xHost -ip’
    tar -zxvf zlib-1.2.8.tar.gz
    cd zlib-1.2.8
    ./configure –prefix=/home/user/Mohid/zlib-1.2.8
    make
    make check
    make install

    hdf5:

    export CC=icc
    export FC=’ifort -fpp -DDEC$=DEC_ -DMS$=MS_’
    export CXX=icpc
    tar -zxvf hdf5-1.8.11.tar.gz
    cd hdf5-1.8.11
    ./configure –prefix=/home/user/Mohid/hdf5-1.8.11 –enable-fortran –enable-fortran2003 –enable-cxx –enable-unsupported \
    –with-szlib=/home/user/Mohid/szip-2.1 –with-zlib=/home/user/Mohid/zlib-1.2.8/include,/home/user/Mohid/zlib-1.2.8/lib –enable-production
    make
    make check
    make install

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s