Parallel Jobs with MPI
From HPC users
Jump to navigationJump to search
Compilation
To compile a program load the module for the desired MPI library (or a toolchain that includes such library). E.g:
module load intel/2016b
for Intel MPI (this is in fact the Intel toolchain, so also includes Intel MKL), or
module load OpenMPI/2.0.2-GCC-5.4.0
for OpenMPI (built with GCC/5.4.0, which is loaded automatically).
Once the module is loaded you can compile your MPI program in the usual way. For exampl, the program mpi_heat2D.c can be compiled with:
mpicc mpi_heat2D.c -o mpi_heat2D_impi