Parallel Programming Guide for HP-UX Systems

MPI
Running
Chapter 2 39
% bsub pam -mpi $MPI_ROOT/bin/mpirun -f my_appfile
runs an appfile named my_appfile and requests host assignments for all remote and local
hosts specified in my_appfile. If my_appfile contains the following items:
-h voyager -np 10 send_receive
-h enterprise -np 8 compute_pi
Host assignments are returned for the two symbolic links voyager and enterprise.
When requesting a host from LSF, you must ensure that the path to your executable file is
accessible by all machines in the resource pool.
where [
mpirun_options
] for all of the preceding examples are:
-1sided
Enables one-sided communication.
-ck
Behaves like the -p option, but supports two additional checks of your MPI
application; it checks if the specified host machines and programs are
available, and also checks for access or permission problems.
-commd
Routes all off-host communication through daemons rather than between
processes. Refer to “Communicating using daemons” on page 50 for more
information.
-d
Turns on debug mode.
-e
var
[=
val
]
Sets the environment variable
var
for the program and gives it the value
val
if provided. Environment variable substitutions (for example, $FOO)
are supported in the
val
argument.
-f
appfile
Specifies the
appfile
that mpirun parses to get program and process count
information for the run. Refer to“Creating an appfile” on page 42 for details
about setting up your appfile.
-h
host
Specifies a host on which to start the processes (default is
local_host
).
-ha