Skip to content

Sierra User Guide: Compiling

Sierra provides Intel and GNU (default) compilers. MPI implementations provided are impi and openMPI.

Using the Intel Compilers

The Intel Compilers can be loaded by modifying your ~/.bashrc or ~/.cshrc file:

[user@sierra ~]$ cat .bashrc 
module load intel

And source the environment:

[user@sierra ~]$ source ~/.bashrc
Serial MPI
Fortran ifort mpif90
C icc mpicc
C++ icpc mpiCC

Using the GNU Compilers

The GNU compilers will be loaded automatically in your environment.

[user@sierra ~]$ cat -v 
gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
Serial MPI
Fortran gfortran mpif90
C gcc mpicc
C++ g++ mpiCC

Back to Top

Did You Get
What You
Yes No