LSF Version 7.3 - Using Platform LSF HPC
Submitting MPICH-GM Jobs
bsub command
Use bsub to submit MPICH-GM jobs.
bsub -a mpich_gm -n
number_cpus
mpirun.lsf
[-pam "
pam_options
"] [
mpi_options
]
job
[
job_options
]
◆
-a mpich_gm tells esub the job is an MPICH-GM job and invokes
esub.mpich_gm.
◆
-n
number_cpus
specifies the number of processors required to run the job
◆
mpirun.lsf
reads the environment variable LSF_PJL_TYPE=mpich_gm set by
esub.mpich_gm, and generates the appropriate pam command line to invoke
MPICH-GM as the PJL
For example:
% bsub -a mpich_gm -n 3 mpirun.lsf /examples/cpi
A job named cpi will be dispatched and run on 3 CPUs in parallel.
To limit the number of jobs using GM ports, specify a resource requirement in your job
submission:
-R "rusage[gm_ports=1]
Submitting a job with a job script
You can use a wrapper script to call the MPICH-GM job launcher. You can submit a job
using a job script as an embedded script or directly as a job, for example:
% bsub -a mpich_gm -n 4 < embedded_jobscript
% bsub -a mpich_gm -n 4 jobscript
Your job script must use mpirun.lsf in place of the mpirun command.
For information on generic PJL wrapper script components, see Chapter 3, “Running
Parallel Jobs”.
See Administering Platform LSF for information about submitting jobs with job scripts.