Project

General

Profile

Actions

Building NetCDF with intel's openMPI

To build netCDF with openMPI based on intel compiler, first you have to folow this steps, then:

export CC=mpicc
export F77=mpif77
export F90=mpif90
export FC=mpif90
#export LIBS="-lirc" 
export CFLAGS="-fPIC -DgFortran" 
export CXXFLAGS="-fPIC -fno-second-underscore -DgFortran" 
export FFLAGS="-fPIC -fno-second-underscore -DgFortran" 
export F90FLAGS="-fPIC -fno-second-underscore -DgFortran" 
export LDFLAGS="-fPIC" 
./configure --prefix=/opt/netcdf --disable-shared --disable-dap --enable-f90 
make -j 64  # or the number of cores you have

Then to install it, you must do it as super user:

sudo make install

Once installed you need to tell the linker the library path, to do so:

su root  #sudo -s on ubuntu
echo "/opt/netcdf/lib" > /etc/ld.so.conf.d/impinetcdf.conf
ldconfig  #Tell the linker to update cache
exit  #leave root session

Updated by Alexis Jeandet over 10 years ago · 4 revisions

Also available in: PDF HTML TXT