HP-MPI User's Guide (11th Edition)
Understanding HP-MPI
Running applications on HP-UX and Linux
Chapter 370
On non-XC systems, to invoke the Parallel Application Manager
(PAM) feature of 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.
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:
% 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