User guide

5Using Other MPIs
MVAPICH2
5-4 IB0054606-02 A
Here is an example of a simple mpirun command running with four processes:
$ mpirun -np 4 -hostfile mpihosts mpi_app_name
Password-less ssh is used unless the -rsh option is added to the command line
above.
Further Information on MVAPICH
For more information about MVAPICH, see:
http://mvapich.cse.ohio-state.edu/
MVAPICH2
Pre-compiled versions of MVAPICH2 1.7 built with the GNU, PGI, and Intel
compilers, and that run over PSM, are available with the QLogic download.
MVAPICH2 that runs over Verbs and is pre-compiled with the GNU compiler is
also available.
MVAPICH2 can be managed with the mpi-selector utility, as described in
“Managing MVAPICH, and MVAPICH2 with the mpi-selector Utility” on page 5-5.
Compiling MVAPICH2 Applications
As with Open MPI, QLogic recommends that you use the included wrapper scripts
that invoke the underlying compiler (see Table 5-3).
To compile your program in C, type:
$ mpicc mpi_app_name.c -o mpi_app_name
To check the default configuration for the installation, check the following file:
/usr/mpi/$compiler/$mpi/etc/mvapich.conf
Table 5-3. MVAPICH Wrapper Scripts
Wrapper Script Name Language
mpicc C
mpiCC, mpicxx C++
mpif77 Fortran 77
mpif90 Fortran 90