QLogic OFED+ Host Software User Guide, Rev. B
QLogic OFED+ Host Software User Guide, Rev. B
QLogic OFED+ Host Software User Guide, Rev. B
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4–Running <strong>QLogic</strong> MPI on <strong>QLogic</strong> Adapters<br />
<strong>QLogic</strong> MPI Details<br />
Using mpirun<br />
• As noted in “Compile and Run an Example C Program” on page 4-4, you<br />
can use the command line option -m:<br />
$mpirun -np n -m mpihosts [other options] program-name<br />
In this case, if the named file cannot be opened, the MPI job fails.<br />
An alternate mechanism to -m for specifying hosts is the -H or -hosts<br />
followed by a host list. The host list can follow one of the following examples:<br />
host-[01-02,04,06-08] , or<br />
host-01,host-02,host-04,host-06,host-07,host-08<br />
• When neither the -m or the -H options are used, mpirun checks the<br />
environment variable MPIHOSTS for the name of the MPI hosts file. If this<br />
variable is defined and the file it names cannot be opened, the MPI job fails.<br />
• In the absence of the -m option, the -H option, and the MPIHOSTS<br />
environment variable, mpirun uses the file ./mpihosts, if it exists.<br />
• If none of these four methods of specifying the hosts file are used, mpirun<br />
looks for the file ~/.mpihosts.<br />
If you are working in the context of a batch queuing system, it may provide a job<br />
submission script that generates an appropriate mpihosts file.<br />
The script mpirun is a front end program that starts a parallel MPI job on a set of<br />
nodes in an TrueScale cluster. mpirun may be run on any i386 or x86_64<br />
machine inside or outside the cluster, as long as it is on a supported Linux<br />
distribution, and has TCP connectivity to all TrueScale cluster machines to be<br />
used in a job.<br />
The script starts, monitors, and terminates the node programs. mpirun uses ssh<br />
(secure shell) to log in to individual cluster machines and prints any messages<br />
that the node program prints on stdout or stderr, on the terminal where<br />
mpirun is invoked.<br />
4-16 D000046-005 B