Attention: Confluence is not suitable for the storage of highly confidential data. Please ensure that any data classified as Highly Protected is stored using a more secure platform.
If you have any questions, please refer to the University's data classification guide or contact ict.askcyber@sydney.edu.au
GNU (e.g. GCC, G++, gfortran)
To use the GNU compilers, load the GNU compiler modules:
module load gcc
or:
module load gcc openmpi-gcc
for OpenMPI programs.
There are many versions of the GNU compilers installed on Artemis. To see what versions are available, run the following command:
module avail |& grep gcc
The following table shows the various commands to use when compiling code, depending on the language and style of execution being used:
Language | Single CPU | Using MPI | Using OpenMP |
---|---|---|---|
Fortran | gfortran | mpif90 | gfortran -fopenmp |
C | gcc | mpicc | gcc -fopenmp |
C++ | g++ | mpicxx | g++ -fopenmp |