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
0 Comments.