IntelCompilers: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__


On any [[RedHat]] host we have support for using the new  Intel® C/C++ Composer XE for Linux and Intel® Fortran Composer XE for Linux and some of the older version of the C/C++ and Fortan compilers that were shipped by Intel.
On any [[RHEL | Red Hat Enterprise Linux (RHEL)]] host we have support for using the new  Intel® C/C++ Composer XE for Linux and Intel® Fortran Composer XE for Linux and some of the older version of the C/C++ and Fortan compilers that were shipped by Intel.


To setup your environment you will need to either source some config files depending on your shell and architecture or load the appropriate [[Modules | GNU Module]].
To setup your environment you will need to either load a [[Modules | GNU Module]] file or source some config files depending on your shell and architecture.
 
==Module File==
Rather than sourcing the scripts as mentioned below, you can load a pre-configured [[Modules | GNU Module]] file to the same end. You can run the following on RHEL8+/Ubuntu hosts to prepare your environment for either C/C++ or Fortran compilation:
 
    module load intel/2020.1


==C/C++==
==C/C++==
Line 10: Line 15:
|-
|-
!Version
!Version
!RHEL5 Path
!RHEL8+/Ubuntu Path
!RHEL6/Ubuntu Path
|-
|-
|10.0.026
|10.0.026
|/opt/intel/cc/10.0.026
|/opt/common/intel/cc/10.0.026
|/opt/common/intel/cc/10.0.026
|-
|-
|11.1
|11.1
|/opt/intel/Compiler/11.1/current
|/opt/common/intel/Compiler/11.1/current
|/opt/common/intel/Compiler/11.1/current
|-
|-
|2011.1
|2011.1
|/opt/intel/composerxe-2011
|/opt/common/intel/composerxe-2011
|/opt/common/intel/composerxe-2011
|-
|-
|13.1.1
|13.1.1
|/opt/intel/composer_xe_2013_sp1.1.106
|/opt/common/intel/composer_xe_2013_sp1.1.106
|/opt/common/intel/composer_xe_2013_sp1.1.106
|}
|}


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


Example for a tcsh/csh user using the 64bit 13.1.1 version of the compiler on a RHEL6 host:
Example for a tcsh/csh user using the 64bit 13.1.1 version of the compiler on a RHEL8+ host:


   source /opt/common/intel/composer_xe_2013_sp1.1.106/bin/iccvars.csh intel64
   source /opt/common/intel/composer_xe_2013_sp1.1.106/bin/iccvars.csh intel64
Line 43: Line 43:
|-
|-
!Version
!Version
!RHEL5 Path
!RHEL8+/Ubuntu Path
!RHEL6/Ubuntu Path
|-
|-
|10.0.026
|10.0.026
|/opt/intel/fc/10.0.026
|/opt/common/intel/fc/10.0.026
|/opt/common/intel/fc/10.0.026
|-
|-
|11.1
|11.1
|/opt/intel/Compiler/11.1/current
|/opt/common/intel/Compiler/11.1/current
|/opt/common/intel/Compiler/11.1/current
|-
|-
|2011.1
|2011.1
|/opt/intel/composerxe-2011
|/opt/common/intel/composerxe-2011
|/opt/common/intel/composerxe-2011
|-
|-
|13.1.1
|13.1.1
|/opt/intel/composer_xe_2013_sp1.1.106
|/opt/common/intel/composer_xe_2013_sp1.1.106
|/opt/common/intel/composer_xe_2013_sp1.1.106
|}
|}


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


Example for a tcsh/csh user using the 64bit 13.1.1 version of the compiler on a RHEL6 host:
Example for a tcsh/csh user using the 64bit 13.1.1 version of the compiler on a RHEL8+ host:


   source /opt/common/intel/composer_xe_2013_sp1.1.106/bin/ifortvars.csh intel64
   source /opt/common/intel/composer_xe_2013_sp1.1.106/bin/ifortvars.csh 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.

Latest revision as of 13:44, 23 October 2024


On any Red Hat Enterprise Linux (RHEL) host we have support for using the new Intel® C/C++ Composer XE for Linux and Intel® Fortran Composer XE for Linux and some of the older version of the C/C++ and Fortan compilers that were shipped by Intel.

To setup your environment you will need to either load a GNU Module file or source some config files depending on your shell and architecture.

Module File

Rather than sourcing the scripts as mentioned below, you can load a pre-configured GNU Module file to the same end. You can run the following on RHEL8+/Ubuntu hosts to prepare your environment for either C/C++ or Fortran compilation:

   module load intel/2020.1

C/C++

Intel C/C++ Versions
Version RHEL8+/Ubuntu Path
10.0.026 /opt/common/intel/cc/10.0.026
11.1 /opt/common/intel/Compiler/11.1/current
2011.1 /opt/common/intel/composerxe-2011
13.1.1 /opt/common/intel/composer_xe_2013_sp1.1.106

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 specify the architecture on the command line when sourcing. For 32bit users that is ia32 and for 64bit that is intel64.

Example for a tcsh/csh user using the 64bit 13.1.1 version of the compiler on a RHEL8+ host:

  source /opt/common/intel/composer_xe_2013_sp1.1.106/bin/iccvars.csh 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 RHEL8+/Ubuntu Path
10.0.026 /opt/common/intel/fc/10.0.026
11.1 /opt/common/intel/Compiler/11.1/current
2011.1 /opt/common/intel/composerxe-2011
13.1.1 /opt/common/intel/composer_xe_2013_sp1.1.106

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 specify the architecture on the command line when sourcing. For 32bit users that is ia32 and for 64bit that is intel64.

Example for a tcsh/csh user using the 64bit 13.1.1 version of the compiler on a RHEL8+ host:

  source /opt/common/intel/composer_xe_2013_sp1.1.106/bin/ifortvars.csh intel64

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