Hprc banner tamu.png


Revision as of 16:07, 7 October 2014 by Pennings (talk | contribs)
Jump to: navigation, search

MPI Code

The table below shows the commands to compile mpi programs. These commands are basically wrapper scripts that call the respective intel compilers with additional linker flags\ . Any intel compiler flag will also work when using the wrappers below.

Language Compiler Example
C mpiicc mpiicc <compiler_flags> prog.c
C++ mpiicpc mpiicpcp <compiler_flags> prog.cpp
F90 mpiifort mpiifort <compiler_flags> prog.f90
F77 mpiifort mpiifort <compiler_flags> prog.f

To see complete compiler command when calling the wrapper functions above use the **-show** flag:

 -bash-4.1$ mpiifort -show 
ifort -I/software/easybuild/software/impi/ -I/software/easybuild/software/impi/ 
-L/software/easybuild/software/impi/ -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker 
/software/easybuild/software/impi/ -Xlinker -rpath -Xlinker -/opt/intel/mpi-rt/4.1 -lmpigf -lmpi -lmpigi -ldl -lrt -lpthread`