LSF Version 7.3 - Using Platform LSF HPC

Submitting MPICH2 Jobs
bsub command
Use the bsub command to submit MPICH2 jobs.
Submit a job from the console command line:
bsub <
bsub_options
> -n <
###
> -a mpich2 mpirun.lsf <
mpiexec_options
> job
<
job_options
>
For example:
bsub -I -n 8 -R "span[ptile=4]" -a mpich2 -W 2 mpirun.lsf -np 3 ./hw.mpich2
Submit a job using a script:
bsub < myjobscript.sh
where myjobscript.sh looks like:
#!/bin/sh
#BSUB -n 8
#BSUB -a mpich2
mpirun.lsf ./hw.mpich2
The mpich2_wrapper script supports almost all original mpiexec options except
those that will affect job scheduling decisions, for example,
-np (-n).
-n syntax is supported. If you use the -n option, you must either request enough CPUs
when the job is submitted, or set the environment variable
LSB_PJL_TASK_GEOMETRY. See “Running Jobs with Task Geometry” on page 57
for detailed usage of LSB_PJL_TASK_GEOMETRY.
Task geometry with MPICH2 jobs
MPICH2 mpirun requires the first task to run on the local node OR all tasks to run on
a remote node (
-nolocal). If the LSB_PJL_TASK_GEOMETRY environment
variable is set,
mpirun.lsf makes sure the task group that contains task 0 in
LSB_PJL_TASK_GEOMETRY runs on the first node.
The environment variable LSB_PJL_TASK_GEOMETRY is checked for all parallel
jobs. If LSB_PJL_TASK_GEOMETRY is set users submit a parallel job (a job that
requests more than 1 slot), LSF attempts to shape LSB_MCPU_HOSTS accordingly.