gnu-compilers

Compilers and Message Passing Libraries

Software Description

MSI systems have available the GNU project compilers for C, C++, and Fortran.  Extensive information concerning regarding these compilers is available at the GNU Compiler Collection website . gcc is installed natively on most systems. If gcc is installed natively, no module load is required for the default version of gcc. To see if gcc is installed natively:

 which gcc

Info

Module Name

gcc

Last Updated On

11/14/2023

Support Level

Primary Support

Software Access Level

Open Access

Home Page

https://gcc.gnu.org

Documentation

Software Description

MSI systems have available the GNU project compilers for C, C++, and Fortran.  Extensive information concerning regarding these compilers is available at the GNU Compiler Collection website . gcc is installed natively on most systems. If gcc is installed natively, no module load is required for the default version of gcc. To see if gcc is installed natively:

 which gcc

Slurm Example

#!/bin/bash
#SBATCH --job-name="rfm_RunGNU_COMPILER_Test_job"
#SBATCH --ntasks=1
#SBATCH --ntasks-per-node=1
#SBATCH --output=rfm_RunGNU_COMPILER_Test_job.out
#SBATCH --error=rfm_RunGNU_COMPILER_Test_job.err
#SBATCH --time=0:10:0
#SBATCH -p small,large,ram256g,ram1t
module load gcc/8.2.0
wget https://public.s3.msi.umn.edu/reframe/sw/gnu/hello.c
wget https://public.s3.msi.umn.edu/reframe/sw/gnu/hello.cpp
gcc hello.c -o hello; ./hello; g++ hello.cpp -o hello_cpp; ./hello_cpp

General Linux

To load this module for use in a Linux environment, you can run the command:

module load gcc

Depending on where you are working, there may be more than one version of gcc available. To see which modules are available for loading you can run:

module avail gcc

Agate Modules

Default

8.2.0

Other Modules

13.1.0-5z64cho, 13.1.0-mptekim, 4.9.2-krax5se, 4.9.2-ugw6raf, 7.2.0-kjvrzfs, 7.2.0-tvrcc2c, 8.2.0-hisn3fl, 8.2.0-ztp76o3, 8.2.0, 9.2.0, 11.3.0, 4.9.2, 5.1.0, 5.4.0, 6.1.0, 6.3.0, 7.2.0, 8.1.0

Mangi Modules

Default

8.2.0

Other Modules

13.1.0-5z64cho, 13.1.0-mptekim, 4.9.2-krax5se, 4.9.2-ugw6raf, 7.2.0-kjvrzfs, 7.2.0-tvrcc2c, 8.2.0-hisn3fl, 8.2.0-ztp76o3, 8.2.0, 9.2.0, 11.3.0, 4.9.2, 5.1.0, 5.4.0, 6.1.0, 6.3.0, 7.2.0, 8.1.0

Mesabi Modules

Default

8.2.0

Other Modules

13.1.0-5z64cho, 13.1.0-mptekim, 4.9.2-krax5se, 4.9.2-ugw6raf, 7.2.0-kjvrzfs, 7.2.0-tvrcc2c, 8.2.0-hisn3fl, 8.2.0-ztp76o3, 8.2.0, 9.2.0, 11.3.0, 4.9.2, 5.1.0, 5.4.0, 6.1.0, 6.3.0, 7.2.0, 8.1.0