Attention
GPU users: GPU nodes run EL9, while this documentation still reflects the EL7 software stack.
Run module avail on an EL9 login node, or within an interactive session on the relevant GPU type, to see the software available.
The documentation will be updated once all nodes have migrated to EL9.
GNU Compiler Collection (gcc)
The GNU Compiler Collection (gcc) is a widely used, free collection of compilers for C (gcc), C++ (g++) and Fortran (gfortran).
It is possible to switch versions of the gcc compiler suite using modules.
After connecting to Stanage (see Establishing a SSH connection), start an interactive session with the following command:
srun --pty bash -i
then choose the version of the compiler you wish to use by running one of the following lines:
module load GCC/12.3.0
module load GCC/12.2.0
module load GCC/11.3.0
module load GCC/11.2.0
module load GCC/11.1.0
module load GCC/10.3.0
module load GCC/10.2.0
module load GCC/10.1.0
module load GCC/9.5.0
module load GCC/9.3.0
module load GCC/9.2.0
module load GCC/8.3.0
module load GCC/8.2.0-2.31.1
module load GCC/7.3.0-2.30
module load GCC/6.4.0-2.28
module load GCC/4.9.3-2.25
module load GCC/12.3.0
module load GCC/12.2.0
module load GCC/11.3.0
module load GCC/11.2.0
module load GCC/10.2.0
module load GCC/8.3.0
module load GCC/8.2.0-2.31.1
Confirm that you’ve loaded the version of gcc you wanted using gcc -v. See matching foss toolchains
Language support
Which version(s) of GCC support which features of the C99 and C11 standards?
Which version(s) of GCC support which features of the C++98, C++11, C++14 and C++17 standards?
Documentation
man pages are available on the system.
Once you have loaded the required version of gcc, type
man gcc