Three sets of compilers are available on Hazel: GNU, Intel, and Nvidia (formerly Portland Group). Each set includes Fortran, C, and C++ compilers.
The GNU compilers are provided as part of the Linux distribution used on the Hazel cluster.
To use the GNU implementation of Open MPI, load the module>
module load openmpi-gcc
.
To compile with GNU:
Serial compilation
gcc
g++
gfortran
Parallel compilation using MPI
mpicc
mpicxx
, also mpiCC
and mpic++
mpifort
, also mpif77
and mpif90
Parallel compilation using OpenMP
-fopenmp
.
To use the Intel compilers, load the module module load PrgEnv-intel
.
To compile with Intel:
Serial compilation
icc
icpc
ifort
Parallel compilation using MPI
mpiicc
, also mpicc
mpiicpc
, also mpicxx
mpiifort
, also mpif77
and mpif90
Parallel compilation using OpenMP
-qopenmp
.
To use the PGI compilers,
load the module module load PrgEnv-pgi
.
To compile with PGI:
Serial compilation
pgcc
pgc++
pgfortran
also pgf77
and pgf90
Parallel compilation using OpenMP
-mp
.
Parallel compilation using OpenACC
-acc
or ta=[target]
.
module load intel
was used to compile the code, use module load intel
to set the environment in a submit script before launching the executable.bsub -Is
, see LSF for Interactive jobs). module avail
and then load the full pathname of the module, e.g., module load PrgEnv-intel/2016.0.109
.