Monday, November 17, 2008

Build NetCDF using Intel ifort in Linux

http://www.intel.com/support/performancetools/sb/CS-027812.htm

Switch to bash, and set the environment variables as follows.

export CC=icc
export CXX=icpc
export CFLAGS='-O3 -xT -ip -no-prec-div -static'
export CXXFLAGS='-O3 -xT -ip -no-prec-div -static'
export F77=ifort
export FFLAGS='-O3 -xT -ip -no-prec-div -static'
export CPP='icc -E'
export CXXCPP='icpc -E'


Configure the source, and build the library.
./configure --prefix=/usr/local/netcdfi
make
make check
make install


You must be root to install NetCDF to /usr/local directory.

2 comments:

Anonymous said...

Amiable fill someone in on and this enter helped me alot in my college assignement. Gratefulness you on your information.

Ofir said...

Thanks a lot! That was really helpful!