Parallel Programming Guide for HP-UX Systems

MPI
Running
Chapter 242
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 43 for details.
program
Specifies the name of the executable file to run.
IMPI_options
Specifies this mpirun is an IMPI client. Refer to “IMPI” on page 52 for more
information on IMPI, as well as a complete list of IMPI options.
lsf_options
Specifies bsub options that the load-sharing facility (LSF) applies to the
entire job (that is, every host). Refer to the bsub(1) man page for a list of
options you can use. Note that LSF must be installed for
lsf_options
to
work correctly.
-stdio=[
options
]
Specifies standard IO options.
CAUTION The -help, -version, -p, and -tv options are not supported with the bsub pam
-mpi mpirun startup method.
Appfiles An appfile is a text file that contains process counts and a list of programs. When
you invoke mpirun with the name of the appfile, mpirun parses the appfile to get information
for the run. You can use an appfile when you run a single executable file on a single host, and
you must use an appfile when you run on multiple hosts or run multiple executable files.
Creating an appfile The format of entries in an appfile is line oriented. Lines that end with the
backslash (\) character are continued on the next line, forming a single logical line. A logical line
starting with the pound (#) character is treated as a comment. Each program, along with its arguments,
is listed on a separate logical line.
The general form of an appfile entry is:
[-h
remote_host
] [-e
var
[=
val
] [...]] [-l
user
] [-sp
paths
]
[-np
#
]
program
[
args
]
where
-h
remote_host
Specifies the remote host where a remote executable file is stored. The default is to
search the local host.
remote_host
is either a host name or an IP address.