¸®´ª½º °ü·Ã °Ô½ÃÆÇ

2012/06/08(11:36) from 150.183.108.138
ÀÛ¼ºÀÚ : ÁÖÀÎÀå Á¶È¸¼ö : 6765 , ÁÙ¼ö : 28
[Linux] Netcdf-4.1.3 & Intel compiler
Building NetCDF on Linux*

The NetCDF build process starts with a configuration step. The configuration script uses environment variables to select the compilers and compiler options to use when building NetCDF.



Set environment variables

•To build for Linux with the Intel Fortran Compiler and Intel C++ Compiler, export the following environment variables:
$ 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 FC=ifort
$ export F90=ifort
$ export FFLAGS='-O3 -xT -ip -no-prec-div -static'

$ export CPP='icc -E'
$ export CXXCPP='icpc -E'

Note that the -xT compiler option will generate code using SSE3 instructions that are not available on processors older than Intel Core¢â 2 Duo processors. If you will be using the lib raries on systems with older Intel¢ç processors, you will want to use the –xP, -xN, or –xW options. Consult the online compiler documentation installed with the compiler for details about these options. For the 11.0 compiler, -xssse3 is equivalent to -xT, -xsse3 is equivalent to -xP, -xsse2 is equivalent to -xN, and -msse2 is equivalent to -xW.

The -O3 option is available for both Intel¢ç and non-Intel microprocessors but it may result in more optimizations for Intel microprocessors than for non-Intel microprocessors. For more information on processor-specific optimizations, see Intel¢ç compiler options for SSE generation and processor-specific optimizations.



Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki