Software – GCC
Supported Versions
Version | Location | Operating Sysyem | Notes |
gcc-4.8.5 | /usr/bin/gcc | CentOS 7 | System Default |
gcc-5.3.0 | /usr/local/bin/gcc | CentOS 7 | Default on IPPP WS Only |
gcc-8.3.1 | /opt/rh/devtoolset-8/bin/gcc | CentOS 7 | Login, WS, GPU, GridUIs |
gcc-9.3.1 | /opt/rh/devtoolset-9/bin/gcc | CentOS 7 | Login, WS, GPU, GridUIs |
gcc-10.2.1 | /opt/rh/devtoolset-10/bin/gcc | CentOS 7 | Login, WS, GPU, GridUIs |
gcc-11.3.1 | /usr/bin/gcc | Rocky 9 | System Default |
gcc-12.2.1 | /usr/bin/gcc | Fedora 36 | System Default |
gcc-13.1.1 | /usr/bin/gcc | Fefora 38 | System Default |
IPPP Defaults
The default GCC depends on the system you’re using. It could be any of the versions listed above; please check with gcc -v
Enabling GCC (Devtoolset) – Source
To enable any of the devtoolset versions of gcc run the following:
source /opt/rh/devtoolset-<version>/enable
This will load any functions associated with that devtoolset version.
Enabling GCC (Devtoolset) – User Modules
Run the following command to display a list of modules available to the user:
module avail
Load GCC module with the following:
module load compilers/<gcc version show in the avail command>
Show Loaded modules:
module list
To unload a module:
module unload compilers/<gcc version shown in list command>