HP-MPI User's Guide (11th Edition)
mpirun using implied prun or srun
Implied prun
Appendix C286
Implied prun
HP-MPI provides an 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.
Set the environment variable:
% setenv MPI_USEPRUN 1
HP-MPI will insert the -prun argument.
The following arguments are considered to be prun arguments:
• -n -N -m -w -x
• -e MPI_WORKDIR=/path will be translated to the prun argument
--chdir=/path
• any argument that starts with -- and is not followed by a space
• -np will be translated to -n
• -prun will be accepted without warning.
The implied prun mode allows the use of HP-MPI appfiles. Currently, an
appfile must be homogenous in its arguments with the exception of -h
and -np. The -h and -np arguments within the appfile are discarded. All
other arguments are promoted to the mpirun command line.
Additionally, arguments following -- are also processed.
Additional environment variables provided:
• MPI_PRUNOPTIONS
Allows additional prun options to be specified such as --label.
% setenv MPI_PRUNOPTIONS <option>
• MPI_USEPRUN_IGNORE_ARGS
Provides an easy way to modify the arguments contained in an
appfile by supplying a list of space-separated arguments that mpirun
should ignore.
% setenv MPI_USEPRUN_IGNORE_ARGS <option>
prun arguments: