HP-MPI User's Guide (11th Edition)

Understanding HP-MPI
Running applications on HP-UX and Linux
Chapter 3 75
LSF on non-XC systems
Single host execution
To run on a single host, the -np option to mpirun can be used.
For example:
% $MPI_ROOT/bin/mpirun -np 4 ./a.out
will run 4 ranks on the local host.
Appfile execution
For applications that consist of multiple programs or that run on
multiple hosts, here is a list of the most common options. For a
complete list, see the mpirun man page:
mpirun [-help] [-version] [-djpv] [-ck] [-t spec] [-i
spec] [-commd] [-tv] -f appfile [-- extra_args_for_
appfile]
Where -- extra_args_for_appfile specifies extra arguments to be
applied to the programs listed in the appfile—A space separated list
of arguments. Use this option at the end of your command line to
append extra arguments to each line of your appfile. Refer to the
example in “Adding program arguments to your appfile” on page 78
for details. These extra args also apply to spawned ne applications if
specified on the mpirun command line.
In this case, each program in the application is listed in a file called
an appfile. Refer to “Appfiles” on page 77 for more information.
For example:
% $MPI_ROOT/bin/mpirun -f my_appfile
runs using an appfile named my_appfile, which might have contents
such as:
-h hostA -np 2 /path/to/a.out
-h hostB -np 2 /path/to/a.out
which specify that two ranks are to run on hostA and two on hostB.
prun execution