User guide
4–Running MPI on QLogic Adapters
Open MPI
4-4 IB0054606-02 A
The first choice will use verbs by default, and any with the _qlc string will use
PSM by default. If you chose openmpi_gcc_qlc-1.4.3, for example, then the
following simple mpirun command would run using PSM:
$ mpirun -np 4 -machinefile mpihosts mpi_app_name
To run over IB Verbs instead of the default PSM transport in
openmpi_gcc_qlc-1.4.3, use this mpirun command line:
$ mpirun -np 4 -machinefile mpihosts --mca btl sm --mca btl
openib,self --mca mtl ^psm mpi_app_name
The following command enables shared memory:
--mca btl sm
The following command enables openib transport and communication to self:
--mca btl openib, self
The following command disables PSM transport:
--mca mtl ^psm
In these commands, btl stands for byte transport layer and mtl for matching
transport layer.
PSM transport works in terms of MPI messages. OpenIB transport works in terms
of byte streams.
Alternatively, you can use Open MPI with a sockets transport running over IPoIB,
for example:
$ mpirun -np 4 -machinefile mpihosts --mca btl sm --mca btl
tcp,self --mca btl_tcp_if_exclude eth0 --mca
btl_tcp_if_include ib0 --mca mtl ^psm mpi_app_name
Note that eth0 and psm are excluded, while ib0 is included. These instructions
may need to be adjusted for your interface names.
Note that in Open MPI, machinefile is also known as the hostfile.
Further Information on Open MPI
For more information about Open MPI, see:
http://www.open-mpi.org/
http://www.open-mpi.org/faq