Difference between revisions of "Intel Compiler 2016"

From HPC users
Jump to navigationJump to search
Line 26: Line 26:
== Compiler Flags ==
== Compiler Flags ==
Here are some compiler flags which may increase the performance of your code
Here are some compiler flags which may increase the performance of your code
<center>
 
{| style="background-color:#eeeeff;" cellpadding="10" border="1" cellspacing="0"  
{| style="background-color:#eeeeff;" cellpadding="10" border="1" cellspacing="0"  
|- style="background-color:#ddddff;"
|- style="background-color:#ddddff;"

Revision as of 09:38, 16 February 2017

The Intel compiler is available as a module and is currently installed in version 2016.3.210. To find out which versions are installed you can use the command

 module av icc

which currently shows

 -------------------- /cm/shared/uniol/modulefiles/COMPILER ---------------------
 intel/2016.3.210

To load the module of your choice type e.g.

 module load intel/2016.3.210

The commands for the available languages are

Name Description
icc C compiler
icpc C++ compiler
ifort Fortran compiler

Compiler Flags

Here are some compiler flags which may increase the performance of your code

Flag Description
-O2, -O3, -fast Enable optimization to maximise speed. -O3 and -fast is more agressive.
-xHost Enables the usage SIMD extensions of host which allows vectorizing of floating point operations.
-fp-model MODEL Defines the consistency level of floating point operations. Allowed MODEL are: fast, precise, strict, except
-[no-]prec-div, -[no-]prec-sqrt, -[no-]fast-transcendentals Enables faster computations of divisions, square roots and transcendental functions with a reduced accruacy, respectively.

Advantages


Disadvantages