HP-MPI User's Guide (11th Edition)
mpirun using implied prun or srun
Implied srun
Appendix C 289
% setenv MPI_USESRUN_IGNORE_ARGS -stdio=bnone
% setenv MPI_USESRUN 1
% setenv MPI_SRUNOPTION --label
% bsub -I -n4 -ext "SLURM[nodes=4]" \
$MPI_ROOT/bin/mpirun -stdio=bnone -f appfile \
-- pingpong
Job <369848> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
/opt/hpmpi/bin/mpirun
unset
MPI_USESRUN;/opt/hpmpi/bin/mpirun
-srun ./pallas.x -npmin 4 pingpong
srun arguments:
• -n, --ntasks=ntasks
Specify the number of processes to run.
• -N, --nodes=nnodes
Request that nnodes nodes be allocated to this job.
• -m, --distribution=(block|cyclic)
Specify an alternate distribution method for remote processes.
• -w, --nodelist=host1,host2,... or filename
Request a specific list of hosts.
• -x, --exclude=host1,host2,... or filename
Request that a specific list of hosts not be included in the resources
allocated to this job.
• -l, --label
Prepend task number to lines of stdout/err.
For more information on srun arguments, refer to the srun man page.
The following is an example using the implied srun mode. Note how the
contents of the appfile are passed along except for -np and -h which are
discarded. Also note how some arguments are pulled from the appfile
and others after the --.