Programming Environment
GNU Compiler Collection (GCC) version 8.4.1 is in the default user environment. GCC version 12.2.0 is also available; load version 12.2.0 with the following command:
module load gcc/12.2.0
Compiler Commands
Serial
To build (compile and link) a serial program in Fortran, C, and C++ enter:
GCC |
Build Commands |
---|---|
Fortran 77 |
|
Fortran 90 |
|
C |
|
C++ |
|
MPI
(coming soon)
To build (compile and link) a MPI program in Fortran, C, and C++:
MPI Implementation |
modulefile for MPI/Compiler |
Build Commands |
---|---|---|
Open MPI |
openmpi/4.1.4-gcc |
|
OpenMP
To build an OpenMP program, use the -fopenmp
option:
GCC |
Build Commands |
---|---|
Fortran 77 |
|
Fortran 90 |
|
C |
|
C++ |
|
Hybrid MPI/OpenMP
(coming soon)
To build an MPI/OpenMP hybrid program, use the -fopenmp
option with the MPI compiling commands:
MPI Implementation |
modulefile for MPI/Compiler |
Build Commands |
---|---|---|
Open MPI |
openmpi/4.1.4-gcc |
|
CUDA
NVIDIA GPUs are available as part of the Nightingale compute cluster. CUDA is a parallel computing platform and programming model from NVIDIA for use on the GPUs. These GPUs support CUDA compute capability 2.0.
Load the CUDA Toolkit into your environment using the following module command:
module load cuda/11.4.2