Skip to content

Dash User Guide: Compiling

The Intel compilers are setup by default in the user enironment, and the majority of applications and libraries are compiled via Intel. However, GNU compilers are also available for use on Dash with limited support for 3rd party libraries.

Note: The default MPI on the vSMP nodes is different than that on the login/compute nodes, namely mpich instead of mvapich. To run an MPI code on the vSMP node, load the MPICH2 module before compiling.

Using the Intel Compilers

The Intel Compilers should be loaded automatically in your environment; however, if you've modified your ~/.bashrc or ~/.cshrc you can reload the Intel compilers via:

[user@dash ~]$ cat .bashrc 
...
module swap gnu intel 
module load mvapich 

And source the environment:

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

Using the GNU Compilers

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

[user@dash ~]$ cat .bashrc 
...
module swap intel gnu 
module load openmpi 

And source the environment:

[user@dash ~]$ source ~/.bashrc
Serial MPI OpenMP
Fortran gfortran mpif90 gfortran -fopenmp
C gcc mpicc gcc -fopenmp
C++ g++ mpiCC g++ -fopenmp

Did You Get
What You
Wanted?
Yes No
Comments