Abisko: Installed compilers

Abisko: Installed Compilers

[PathScale Compilers | Intel Compilers | Portland Group (PGI) Compilers | GNU Compiler Collection (GCC) Compilers ]

There are compilers available for Fortran 77, Fortran 90, Fortran 95, C, and C++. The compilers can produce both general-purpose  code and architecture-specific optimized code to improve performance (loop-level optimizations, inter-procedural analysis and cache optimizations).

The examples below will load the default versions. To see all the versions available, type the command

module avail <module name>

where module name is the compiler name (psc, intel, pgi, gcc).

Note, that unless otherwise noted, the compilers are recommended in this order: PathScale (psc), Intel (intel), Portland Group Compilersuite (pgi), GCC (gcc).

OpenMP: Intel, PathScale, and PGI compilers have OpenMP included, so it is enough to load the desired compiler and then add the appropriate flag (see Flags for information about this).

PathScale compilers

To be able to use the PathScale compilers, load the module

module load psc

or the specific version (see current versions with the command module avail and look for psc)

module load psc/4.0.9

Examples

Loading (default version), Abisko

Serial MPI
module load psc module load openmpi/psc

Intel Compilers

We only have a limited number of licenses and because of this, you may sometimes experience that there is none available. Wait for a little while and try again.

To use the Intel compilers, load the module

module load intel

As with the other compilers, it is also possible to load a specific version (see module avail for a list of possible versions and look for intel:

module load intel/12.0

Examples

Loading (default version)

Serial MPI
module load intel module load openmpi/intel
or
module load impi

Portland group (PGI) compilers

To be able to use the PGI compilers, load the module

module load pgi

or the specific version (see current versions with the command module avail and look for pgi)

module load pgi/7.1-6

Examples

Loading (default version)

Serial MPI
module load pgi module load openmpi/pgi

GNU Compiler Collection (GCC)

You do not need to load anything to use the serial compilers for the GCC compilers, as they are already in your path.

In order to be able to compile your MPI programs, you need to load the MPI module. To do that, do:

module load openmpi/gcc

Example:

To load a specific version (see current versions with the command module avail and look for gcc)

module load openmpi/<version>/gcc
Updated: 2017-03-22, 15:55