
This example runs the job exactly the same as in Example 2, but additio nally requests that
node n3 is no t to be used to run the job. Note that this command could have been w ritten to
exclude additional nodes.
7.4.3 Submitting a Serial Job
The synopsis of the bsub comm and to submit a serial (single CPU) j ob to LSF-HPC is:
bsub [bsub-options ][srun [srun-options]] jobname [job-optio ns ]
The bsub com m and launches the job.
The srun command is only necessary to launch the job on the allocated node if the HP X C JOB
STARTER script is not configured. to run a job on the co mpute nodes in the lsf p a rtition.
The jobname argument is the name of an executable file.
Consider an HP XC system configuration in w hich lsfhost.localdomain is the LSF
execution host and nodes n[1-10] are compute nodes in the lsf partition. All n odes contain
two processors, providing 20 processors for use by LSF jobs. Examp le 7-5 shows one way to
submit a parallel job on this system.
Example 7-5: Submitting an Interactive Serial Job
$ bsub -I hostname
Job <73> is submitted to default queue <normal>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
n1
This command runs the serial hostname job interactively on a compute node (n1). The -I
option specifies interactive; output appears on your display.
7.4.4 Submitting a Job in Parallel
The synopsis of the bsub command, which submits a job to run in parallel to LSF-HPC, is:
bsub -n num-procs [bsub-options ] srun [srun-options] jobname [job-options]
The bsub commandsubmitsthejobtoLSF-HPC.
The-n num-procs option specifies to LSF-HPC the number of CPUs to be reserved for
use by the job.
The srun command i s the user job launched by LSF-HPC. The srun command is used to
launch the jobname in parallel on the reserved CPUs on the allocated nodes.
The jobname is the n ame of the executable file to be run in parallel.
7.4.5 Submitting an HP-MPI Job
The synopsis of the bsub command to submit a job to run in parallel to LSF-HPC is as follows:
bsub-n num-procs [bsub-options] mpijob
The mpijob argument has the following format:
mpirun [mpirun--options][- srun [srun-option s]] mp i- jobname
The mpirun command’s -srun optionisonlyrequirediftheMPI_USESRUN environment
variable is not set or if you want to use additional srun options to execute you r job. See
Chapter 8 for more information on the mpirun command.
Using LSF 7-13
Commentaires sur ces manuels