Compiling on the HEC 


Compiling on the HEC




Intel Compilers

To access the Intel Compiler suite, load the intel module:

module add intel

The Intel Compilers (icc for C and C++, ifort for Fortran) can now be invoked. A detailed list of the flags for these compilers can be found in the relevant man pages.

The recommended starting point for generating optimised code is to use the flags -O2 -xHost -no-ftz

Math Kernel Library

The current version of the Intel compiler suite features a built-in version of Intel's Math Kernel Library, offering several popular linear algebra, FFT and PDE functions. The recommended compiler flag for linking with the MKL is -mkl=sequential


PGI Compilers

Quick guide:

To access the Portland Group compiler suite, load the pgi module:

module add pgi

The Portland Compilers (pgcc, pgCC, pgf77, pf90 and pgf95) can now be invoked. The recommended starting point for optimising code is to add the -fastsse flag. To access fast implementations of BLAS, FFT, etc, use the flags -Mcache_align -lacml

Further Reading

Lancaster University
Bailrigg
LancasterLA1 4YW United Kingdom
+44 (0) 1524 65201