HP-MPI User's Guide (11th Edition)
Understanding HP-MPI
Running applications on HP-UX and Linux
Chapter 3 77
% $MPI_ROOT/bin/mpirun <mpirun options> -srun \
<srun options>
The -np option is not allowed with srun. Some features like mpirun
-stdio processing are unavailable.
% $MPI_ROOT/bin/mpirun -srun -n 2 ./a.out
launches a.out on two processors.
% $MPI_ROOT/bin/mpirun -prot -srun -n 6 -N 6 ./a.out
turns on the print protocol option (-prot is an mpirun option, and
therefore is listed before -srun) and runs on 6 machines, one CPU
per node.
For more details about using srun, refer to “Running applications on
HP-UX and Linux” on page 65.
HP-MPI also provides implied srun mode. The implied srun mode
allows the user to omit the -srun argument from the mpirun
command line with the use of the environment variable
MPI_USESRUN. For more information about the implied srun mode see
Appendix C, on page 285.
LSF on XC systems HP-MPI jobs can be submitted using LSF. LSF
uses the SLURM srun launching mechanism. Because of this, HP-MPI
jobs need to specify the -srun option whether LSF is used or srun is
used.
% bsub -I -n2 $MPI_ROOT/bin/mpirun -srun ./a.out
For more details on using LSF on XC systems, refer to “Running
applications on HP-UX and Linux” on page 65.
LSF on non-XC systems 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>
For more details on using LSF on non-XC systems, refer to “Running
applications on HP-UX and Linux” on page 65.
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.