LSF Version 7.3 - Using Platform LSF HPC
Submitting MPICH-P4 Jobs
bsub command
Use bsub to submit MPICH-P4 jobs.
bsub -a mpichp4 -n
number_cpus
mpirun.lsf
[-pam "
pam_options
"] [
mpi_options
]
job
[
job_options
]
◆
-a mpichp4 tells esub the job is an MPICH-P4 job and invokes esub.mpichp4.
◆
-n
number_cpus
specifies the number of processors required to run the job
◆
mpirun.lsf
reads the environment variable LSF_PJL_TYPE=mpichp4 set by
esub.mpichp4, and generates the appropriate pam command line to invoke
MPICH-P4 as the PJL
For example:
% bsub -a mpichp4 -n 3 mpirun.lsf /examples/cpi
A job named cpi will be dispatched and run on 3 CPUs in parallel.
To start the P4 secure-server, run the following command:
% $MPICH_HOME/bin/serv_p4 -o -p
port
where port is the port number of the MPICH-P4 secure server.
Submit your job with the -p4ssport option using the following syntax:
bsub -a mpichp4 -n
number_cpus
mpirun.lsf [-pam "
pam_options
"] [
mpi_options
]
-p4ssport port
job
[
job_options
]
where port is the port number of the MPICH-P4 secure server.
See the MPICH-P4 documentation for more information about the p4ssport secure
server
mpirun.ch_p4 command option.
Task geometry with MPICH-P4 jobs
MPICH-P4 mpirun requires the first task to run on local node OR all tasks to run on
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.
Submitting a job with a job script
You can submit a job using a job script as an embedded script or directly as a job, for
example:
% bsub -a mpichp4 -n 4 < embedded_jobscript
% bsub -a mpichp4 -n 4 jobscript
Your job script must use mpirun.lsf in place of the mpirun command.