GNU Compilers
GNU C, C++, and Fortran Compilers
GNU Compilers requires an environment module
In order to use GNU Compilers, you must first load the appropriate environment module:
module load gnu
The GNU C/C++ and Fortran compilers are provided on the HPC as an alternative to the Intel compilers.
Supported languages#
Below are the compiler commands for C/C++ and Fortran:
Alternative versions#
The HPC provides multiple versions of the GNU compilers via environment modules. To see the versions of the Intel compiler that are available, run the following:
To load an alternative version of the compiler, run the following:
Debugging#
The GNU compilers include a debugger:
More information#
For a quick reference of how to use GNU compilers, add the --help
flag to any command:
More detailed information is available on the compilers' respective manual pages. To access these pages forom the shell, type:
For a comprehensive guide to using the GNU compilers, please refer to the official documentation.