Parallel Programming Guide for HP-UX Systems

MPI
Running
Chapter 238
The -np option is not allowed with -prun. The following mpirun options are allowed with
-prun:
mpirun [-help] [-version] [-jv] [-i <spec>] [-universe_size=#] [-sp <
paths
>]
[-T] [-prot] [-spawn] [-1sided] [-e var[=val]] -prun <
prun options
><
program
>
[<
args
>]
To invoke LSF for applications where all processes execute the same program on the same
host:
bsub [
lsf_options
] pam -mpi mpirun [
mpirun_options
]
program
[
args
]
In this case, LSF assigns a host to the MPI job.
For example:
% bsub pam -mpi $MPI_ROOT/bin/mpirun -np 4 compute_pi
requests a host assignment from LSF and runs the compute_pi application with four
processes.
The load-sharing facility (LSF) allocates one or more hosts to run an MPI job. In general,
LSF improves resource utilization for MPI jobs that run in multihost environments. LSF
handles the job scheduling and the allocation of the necessary hosts and HP MPI handles
the task of starting up the application's processes on the hosts selected by LSF.
By default mpirun starts the MPI processes on the hosts specified by the user, in effect
handling the direct mapping of host names to IP addresses. When you use LSF to start
MPI applications, the host names, specified to mpirun or implicit when the -h option is not
used, are treated as symbolic variables that refer to the IP addresses that LSF assigns.
Use LSF to do this mapping by specifying a variant of mpirun to execute your job.
NOTE Load Sharing Facility (LSF) including PAM is currently available in
PA-RISC only, but runs on Itanium2 systems in 11i (PA) mode. Thus, the
Itanium2 version of HP MPI requires the use of the PA-RISC file
libmpirm.sl in order to run LSF. This file is located in the
$MPI_ROOT/lib/pa2.0 directory.
To invoke LSF for applications that run on multiple hosts:
bsub [
lsf_options
] pam -mpi mpirun [
mpirun_options
] -f
appfile
[--
extra_args_for_appfile
]
In this case, each host specified in the appfile is treated as a symbolic name, referring to
the host that LSF assigns to the MPI job.
For example: