Compilers

Both the GCC compiler collection and Intel compilers are available for use.

GCC Compiler

The GGC compiler collection provides C(gcc), C++(g++) and Fortran (gfortran). The default version is 7.3.0.

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/apps/compilers/gcc/7.3.0/libexec/gcc/x86_64-linux-gnu/7.3.0/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=/opt/apps/compilers/gcc/7.3.0 --enable-checking=release --enable-languages=c$
Thread model: posix
gcc version 7.3.0 (GCC)

The module can be loaded using the following command:

module load compilers/gcc/7.3.0

Usage

gcc hello.c -o hello.o

Intel Compiler

The Intel compiler is version 2018 patch 2 and provides C(icc) and Fortran(ifort).

The Intel C compiler can be loaded using:

module load compilers/intel/2018u2

Usage

To compile a C program using the Intel compiler, execute the following command:

icc hello.c -o hello.o