Compiling with Intel MPI compiler

Let’s compile parallel code with intel compiler, say version 2013

module load intel/13 (you can also choose intel/11/icc or intel/11/ifort)
module load intel/impi

C-code

mpicc -cc=icc main.c -o main.exe

Fortran code main.f90

mpif90 -fc=ifort main.f90 -o main.exe

Run the code

module load intel/13
module load intel/impi

Launch on 8 CPUs:
mpirun -np 8 ./main.exe

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php