Actions
Building NetCDF with intel's openMPI » History » Revision 1
Revision 1/4
| Next »
Alexis Jeandet, 06/11/2013 08:30 PM
BuildingNetCDF¶
To build netCDF with openMPI based on intel compiler, first you have to folow this steps BuildingOMPI, 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 about 11 years ago · 1 revisions