IntelCompilers: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
|/opt/intel/composerxe-2011
|/opt/intel/composerxe-2011
|}
|}
To use a version you need to source the '''bin/iccvars.csh''' for tcsh/csh users or '''bin/iccvars.sh" for bash users.  Additionally you need to specifiy the architecture on the command line when sourcing for 32bit users that is '''ia32''' and for 64bit that is ''intel64'''.
Example for a bash user using the 64bit 2011.1 version of the compiler:
  source /opt/intel/composerxe-2011/bin/iccvars.sh intel64
You can then use the '''icpc''' to compile with the Intel C++ Compiler or '''icc''' to compile with the Intel C Compiler.


==Fortran==
==Fortran==
Line 39: Line 47:
|}
|}


==Version 11.1==
To use a version you need to source the '''bin/ifortvars.csh''' for tcsh/csh users or '''bin/ifortvars.sh" for bash users. Additionally you need to specifiy the architecture on the command line when sourcing for 32bit users that is '''ia32''' and for 64bit that is ''intel64'''.
===32bit Bash===
 
  source /opt/intel/Compiler/11.1/current/bin/ifortvars.sh ia32
Example for a bash user using the 64bit 2011.1 version of the compiler:
  source /opt/intel/Compiler/11.1/current/bin/iccvars.sh ia32
===64bit Bash===
  source /opt/intel/Compiler/11.1/current/bin/ifortvars.sh intel64
  source /opt/intel/Compiler/11.1/current/bin/iccvars.sh intel64
===32bit Tcsh===
  source /opt/intel/Compiler/11.1/current/bin/ifortvars.csh ia32
  source /opt/intel/Compiler/11.1/current/bin/iccvars.csh ia32
===64bit Tcsh===
  source /opt/intel/Compiler/11.1/current/bin/ifortvars.csh intel64
  source /opt/intel/Compiler/11.1/current/bin/iccvars.csh intel64


  source /opt/intel/composerxe-2011/bin/ifortvars.sh intel64


To get started using Intel(R) Composer XE 2011 Update 1 located in
You can then use the '''ifort''' command to compile with the Intel Fortran Compiler.
/opt/intel/composerxe-2011.1.107:
- Set the environment variables for a terminal window using one of the following
  (replace "intel64" with "ia32" if you are using a 32-bit platform).
    For csh/tcsh:
        $ source install-dir/bin/compilervars.csh intel64
    For bash:
        $ source install-dir/bin/compilervars.sh intel64
    To invoke the installed compilers:
        For C++: icpc
        For C: icc
        For Fortran: ifort
  To get help, append the -help option or precede with the man command.
- To view a table of getting started documents:
  install-dir/Documentation/en_US/documentation_f.htm.

Revision as of 17:49, 3 December 2010


On any RedHat host we have support for using Intel® C++ Composer XE for Linux and Intel® Fortran Composer XE for Linux.

To setup your environment you will need to source some config files depending on your shell and architecture.

C/C++

Intel C/C++ Versions
Version Path
10.0.026 /opt/intel/cc/10.0.026
11.1 /opt/intel/Compiler/11.1/current
2011.1 /opt/intel/composerxe-2011

To use a version you need to source the bin/iccvars.csh for tcsh/csh users or bin/iccvars.sh" for bash users. Additionally you need to specifiy the architecture on the command line when sourcing for 32bit users that is ia32 and for 64bit that is intel64.

Example for a bash user using the 64bit 2011.1 version of the compiler:

  source /opt/intel/composerxe-2011/bin/iccvars.sh intel64

You can then use the icpc to compile with the Intel C++ Compiler or icc to compile with the Intel C Compiler.

Fortran

Intel Fortran Versions
Version Path
10.0.026 /opt/intel/fc/10.0.026
11.1 /opt/intel/Compiler/11.1/current
2011.1 /opt/intel/composerxe-2011

To use a version you need to source the bin/ifortvars.csh for tcsh/csh users or bin/ifortvars.sh" for bash users. Additionally you need to specifiy the architecture on the command line when sourcing for 32bit users that is ia32 and for 64bit that is intel64.

Example for a bash user using the 64bit 2011.1 version of the compiler:

  source /opt/intel/composerxe-2011/bin/ifortvars.sh intel64

You can then use the ifort command to compile with the Intel Fortran Compiler.