User guide

4Running MPI on QLogic Adapters
Open MPI
4-2 IB0054606-02 A
Installation
Follow the instructions in the QLogic Fabric Software Installation Guide for
installing Open MPI.
Newer versions of Open MPI released after this QLogic OFED+ release will not be
supported (refer to the OFED+ Host Software Release Notes for version
numbers). QLogic does not recommend installing any newer versions of Open
MPI. If a newer version is required it can be found on the Open MPI web site
(http://www.open-mpi.org/
) and installed after QLogic OFED+ has been installed.
Setup
When using the mpi-selector tool, the necessary $PATH and
$LD_LIBRARY_PATH setup is done.
When not using the mpi-selector tool, put the Open MPI installation directory
in the PATH by adding the following to PATH:
$mpi_home/bin
Where $mpi_home is the directory path where Open MPI is installed.
Compiling Open MPI Applications
QLogic recommends that you use the included wrapper scripts that invoke the
underlying compiler (see Tabl e 4-1 ).
To compile your program in C, type the following:
$ mpicc mpi_app_name.c -o mpi_app_name
These scripts all provide the command line options listed in Table 4-2.
Table 4-1. Open MPI Wrapper Scripts
Wrapper Script Name Language
mpicc C
mpiCC, mpicxx, or mpic++ C++
mpif77 Fortran 77
mpif90 Fortran 90