IntelCompilers: Difference between revisions
(→C/C++) |
No edit summary |
||
Line 39: | Line 39: | ||
|- | |- | ||
!Version | !Version | ||
!Path | !RHEL5 Path | ||
!RHEL6/Ubuntu Path | |||
|- | |- | ||
|10.0.026 | |10.0.026 | ||
|/opt/intel/fc/10.0.026 | |/opt/intel/fc/10.0.026 | ||
|/opt/common/intel/fc/10.0.026 | |||
|- | |- | ||
|11.1 | |11.1 | ||
|/opt/intel/Compiler/11.1/current | |/opt/intel/Compiler/11.1/current | ||
|/opt/common/intel/Compiler/11.1/current | |||
|- | |- | ||
|2011.1 | |2011.1 | ||
|/opt/intel/composerxe-2011 | |/opt/intel/composerxe-2011 | ||
|/opt/common/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'''. | 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: | Example for a bash user using the 64bit 2011.1 version of the compiler on RHEL5: | ||
source /opt/intel/composerxe-2011/bin/ifortvars.sh intel64 | source /opt/intel/composerxe-2011/bin/ifortvars.sh intel64 | ||
You can then use the '''ifort''' command to compile with the Intel Fortran Compiler. | You can then use the '''ifort''' command to compile with the Intel Fortran Compiler. |
Revision as of 17:55, 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++
Version | RHEL5 Path | RHEL6/Ubuntu Path |
---|---|---|
10.0.026 | /opt/intel/cc/10.0.026 | /opt/common/intel/cc/10.0.026 |
11.1 | /opt/intel/Compiler/11.1/current | /opt/common/intel/Compiler/11.1/current |
2011.1 | /opt/intel/composerxe-2011 | /opt/common/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 on a RHEL5 host:
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
Version | RHEL5 Path | RHEL6/Ubuntu Path |
---|---|---|
10.0.026 | /opt/intel/fc/10.0.026 | /opt/common/intel/fc/10.0.026 |
11.1 | /opt/intel/Compiler/11.1/current | /opt/common/intel/Compiler/11.1/current |
2011.1 | /opt/intel/composerxe-2011 | /opt/common/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 on RHEL5:
source /opt/intel/composerxe-2011/bin/ifortvars.sh intel64
You can then use the ifort command to compile with the Intel Fortran Compiler.