Intel Compilers at SCS
Description
The intel compilers provide improved performance over the GNU C/C++ compilers. This compiler product automatically optimizes and parallelizes software to take best advantage of multi-core Intel® processors. For more information about the intel C/C++ compilers, see
Intel's C/C++ compiler support pages. Information about the Intel fortran compiler can be found at
Intel Fortran compiler support pages.
General Use
- intel c/c++ compiler --- icc (for extented options use: icc --help): the list below has been truncated.
usage: icc [options] file1 [file2 ...]
where options represents zero or more compiler options
fileN is a C/C++ source (.C .c .cc .cpp .cxx .c++ .i .ii),
assembly (.s .S), object (.o), static library (.a), or other
linkable file
Commonly used options may be placed in the icc.cfg file.
Compiler Option List
--------------------
Performance
-----------
-O1 optimize for maximum speed, but disable some optimizations which
increase code size for a small speed benefit.
Output, Debug, PCH
-------------
-c compile to object (.o) only, do not link
-S compile to assembly (.s) only, do not link (*I)
-o<file> name output file
-g produce symbolic debug information in object file (implies -O0 when
another optimization option is not explicitly set)
- intel fortran compiler --- ifort (for extented options use: ifort --help): the list below has been truncated.
usage: ifort [options] file1 [file2 ...]
where options represents zero or more compiler options
fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .F90 .i .i90),
assembly (.s .S), object (.o), static library (.a), or other
linkable file
Commonly used options may be placed in the ifort.cfg file.
Compiler Option List
--------------------
Performance
-----------
-O1 optimize for maximum speed, but disable some optimizations which
increase code size for a small speed benefit.
Output, Debug
-------------
-c compile to object (.o) only, do not link
-S compile to assembly (.s) only, do not link
-o<file> name output file
-g produce symbolic debug information in object file (implies -O0 when
another optimization option is not explicitly set)
Fortran Preprocessor
--------------------
-D<name>[=<text>] define macro
-P, -preprocess-only
preprocess to file omitting #line directives
-fpp[n] run Fortran preprocessor on source files prior to compilation
Language
--------
-i2 set default KIND of integer variables to 2
-i4 set default KIND of integer variables to 4
-i8 set default KIND of integer variables to 8
-72 specify 72 column lines for fixed form sources
-80 specify 80 column lines for fixed form sources
-132 specify 132 column lines for fixed form sources
-f66, -66 allow extensions that enhance FORTRAN-66 compatibility
-vms enable VMS and DEC statement extensions
Compiler Diagnostics
--------------------
-w disable all warnings
-Wn disable warnings (n=0) or show warnings
(n=1, DEFAULT, same as -warn general)
-w90, -w95 suppress messages about use of non-standard Fortran
Cluster Specific Use
Phoenix
- The root path to the intel c/c++ compilers is /usr/local/intel/cc/9.1.043. The intel binaries are on /usr/local/intel/cc/9.1.043/bin and the libraries are found on /usr/local/intel/cc/9.1.043/lib. The intel fortran compilers are found in /usr/local/intel/fc/9.1.037.
- For csh shell users to setup the intel c/fortran compilers:
setenv INTEL_CC /usr/local/intel/cc/9.1.043
setenv INTEL_FC /usr/local/intel/fc/9.1.037
set path = ( $INTEL_CC/bin $INTEL_FC/bin $path )
- For bash shell users to setup the intel c/fortran compilers:
export INTEL_CC=/usr/local/intel/cc/9.1.043
export INTEL_FC=/usr/local/intel/fc/9.1.037
PATH=$INTEL_CC/bin:$INTEL_FC/bin:$PATH
Prism
- The root path to the intel c/c++ compilers is /opt/intel/cc/9.1.047. The intel binaries are on /opt/intel/cc/9.1.047/bin and the libraries are found on /opt/intel/cc/9.1.047/lib. The intel fortran compilers are found in /opt/intel/fc/9.1.043.
- For csh shell users to setup the intel c/fortran compilers:
setenv INTEL_CC /opt/intel/cc/9.1.047
setenv INTEL_FC /opt/intel/fc/9.1.043
set path = ( $INTEL_CC/bin $INTEL_FC/bin $path )
- For bash shell users to setup the intel c/fortran compilers:
export INTEL_CC=/opt/intel/cc/9.1.047
export INTEL_FC=/opt/intel/fc/9.1.043
PATH=$INTEL_CC/bin:$INTEL_FC/bin:$PATH