You are here: Home Resources Software Installed Software Compilers and Languages Intel

Intel

Intel (R) C, C++ and Fortran compilers

To use the Intel compiler the appropriate module file needs to be loaded. Intel compilers are available on Ekman, Ferlin, Povel, and Lindgren.

Ekman, Ferlin and Povel

To access the Intel compilers on Ekman, Ferlin and Povel you should use

module add i-compilers

this will load the default Intel compiler version. To see which versions of the Intel compilers are available then use

module avail i-compilers

To use the various compilers you should use the following commands

  • Fortran programs: ifort
  • C programs: icc
  • C++ programs: icpc

More information on the commands and the flags used can be found on the various man pages e.g. by typing

man icc

 

Lindgren

In order to use the Intel compilers on Lindgren, it is necessary to have the PrgEnv-intel loaded. When that module is loaded the cc, CC and ftn scripts will automatically use the intel compiler.

When you log into Lindgren the default PrgEnv is the pgi one, to swap to the Intel PrgEnv use the command

module swap PrgEnv-pgi PrgEnv-intel

Clearly this command will be different if the PrgEnv currently loaded is not PrgEnv-pgi.

When you first load the Intel PrgEnv the default intel compiler will be active. To see which versions of the the Intel compiler are available use

module avail intel

Only the modules in /pdc/vol/Modules should be used.

To use a different version of the intel compiler you can use

module unload intel/11.1
module load intel/2011.0.013

Unfortunately module swap does not work here.

To check the version of intel compiler, simply type:

cc -V

 As stated in the lindgren compiling section the cc, CC and ftn scripts automatically link the different librarys depending on which modules are loaded. FFTW version 2 is a bit more complicted however.

The available drivers (also for linking of MPI applications) are:

  • Fortran 90/95 programs: ftn
  • Fortran 77 programs: f77
  • C programs: cc
  • C++ programs: CC
Example:
cc -o myprog myprog.c
ftn -o myprog myprog.f
More about intel compiler module:
module help intel

or

man ifort
man icc

 More about Intel compilers

More about modules