User guide

5Using Other MPIs
Intel MPI
5-10 IB0054606-02 A
Substitute bin if using 32-bit.
Compiling Intel MPI Applications
As with Open MPI, QLogic recommended that you use the included wrapper
scripts that invoke the underlying compiler. The default underlying compiler is
GCC, including gfortran. Note that there are more compiler drivers (wrapper
scripts) with Intel MPI than are listed here (see Table 5-5); check the Intel
documentation for more information.
To compile your program in C using the default compiler, type:
$ mpicc mpi_app_name.c -o mpi_app_name
To use the Intel compiler wrappers (mpiicc, mpiicpc, mpiifort), the Intel
compilers must be installed and resolvable from the user’s environment.
Running Intel MPI Applications
Here is an example of a simple mpirun command running with four processes:
$ mpirun -np 4 -f mpihosts mpi_app_name
For more information, follow the Intel MPI instructions for usage of mpirun,
mpdboot, and mpiexec (mpirun is a wrapper script that invoked both mpdboot
and mpiexec). Remember to use -r ssh with mpdboot if you use ssh.
Pass the following option to mpirun to select TMI:
-genv I_MPI_FABRICS tmi
Pass the following option to mpirun to select uDAPL:
Table 5-5. Intel MPI Wrapper Scripts
Wrapper Script Name Language
mpicc C
mpiCC C++
mpif77 Fortran 77
mpif90 Fortran 90
mpiicc C (uses Intel C compiler)
mpiicpc C++ (uses Intel C++ compiler)
mpiifort Fortran 77/90 (uses Intel Fortran compiler)