HP-MPI User's Guide (11th Edition)

Understanding HP-MPI
Running applications on HP-UX and Linux
Chapter 376
•Use the -prun option for applications that run on the Quadrics Elan
interconnect. When using the -prun option, mpirun sets
environment variables and invokes prun utilities. Refer to “Runtime
environment variables” on page 131 for more information about prun
environment variables.
The -prun argument to mpirun specifies that the prun command is
to be used for launching. All arguments following -prun are passed
unmodified to the prun command.
% $MPI_ROOT/bin/mpirun <mpirun options> -prun \
<prun options>
The -np option is not allowed with prun. Some features like mpirun
-stdio processing are unavailable.
% $MPI_ROOT/bin/mpirun -prun -n 2 ./a.out
launches a.out on two processors.
% $MPI_ROOT/bin/mpirun -prot -prun -n 6 -N 6 ./a.out
turns on the print protocol option (-prot is an mpirun option, and
therefore is listed before -prun) and runs on 6 machines, one CPU
per node.
For more details about using prun, refer to “Running applications on
HP-UX and Linux” on page 65.
HP-MPI also provides implied prun mode. The implied prun mode
allows the user to omit the -prun argument from the mpirun
command line with the use of the environment variable
MPI_USEPRUN. For more information about the implied prun mode see
Appendix C, on page 285.
srun execution
Applications that run on XC clusters require the -srun option.
Startup directly from srun is not supported. When using this option,
mpirun sets environment variables and invokes srun utilities. Refer
to “Runtime environment variables” on page 131 for more
information about srun environment variables.
The -srun argument to mpirun specifies that the srun command is
to be used for launching. All arguments following -srun are passed
unmodified to the srun command.