GCC
Overview
GNU general purpose C++ compiler
Availability
Cluster | Module/Version |
---|---|
BOSE | gcc/11.1.0 gcc/10.3.0 gcc/9.3.0 8.3.1* |
BGSC | gcc/9.3.0 |
*This software is installed by default and does not require a module.
Note: You can simply use module load gcc
to activate the most recently installed version of this software.
Arguments / Options
This is a list of arguments for the gcc command that we wanted to highlight. Use man gcc
or the online man page for a full list.
Option | Description |
---|---|
-o myprogram | Specify output program for C/C++ compile |
Sample Slurm Script
submit.sh
#!/bin/bash
# -- SLURM SETTINGS -- #
# [..] other settings here [..]
# The following settings are for the overall request to Slurm
#SBATCH --ntasks-per-node=32 # How many CPU cores do you want to request
#SBATCH --nodes=1 # How many nodes do you want to request
# -- SCRIPT COMMANDS -- #
# Load the needed modules
module load gcc # Load gcc
gcc -o myprogram
Real Example
Has your research group used GCC in a project? Contact the HPC Team and we'd be glad to feature your work.