HP-MPI User's Guide (11th Edition)
mpirun using implied prun or srun
Implied srun
Appendix C288
Implied srun
HP-MPI also provides an 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.
Set the environment variable:
% setenv MPI_USESRUN 1
HP-MPI will insert the -srun argument.
The following arguments are considered to be srun arguments:
• -n -N -m -w -x
• any argument that starts with -- and is not followed by a space
• -np will be translated to -n
• -srun will be accepted without warning.
The implied srun 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_SRUNOPTIONS
Allows additional srun options to be specified such as --label.
% setenv MPI_SRUNOPTIONS <option>
• MPI_USESRUN_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_USESRUN_IGNORE_ARGS <option>
In the example below, the appfile contains a reference to
-stdio=bnone which is filtered out because it is set in the ignore list.
% setenv MPI_USESRUN_VERBOSE 1