
additional capabilities at the jo b level and queue level by allowing the inclusion of several
SLURM options in the LSF command line. Refer to Section 7.4.2.
7.4.2 LSF-SLURM External Scheduler
An important option that can be included in submitting parallel jobs with LSF is the external
scheduler option: The external scheduler option provides application—specific external
scheduling options for jobs capabilities and enables inclusion of several SLURM options in
the LS F command line. For example, this opt ion could be used to submit a job to run one task
per node when you have a resource-intensive job which needs to have sole access to the full
resources of a n ode. Or, if your job needed particular resources found on ly on a specific set
of nodes, this option cou ld be used to submit a jo b to those specific nod es. There are several
options available for use with the extern al scheduler. Refer to the list in th is section.
The format for the external scheduler is:
-ext "SLURM[slurm-arguments]"
slurm-arguments can consist of one or more of the following srun options, separated
by semicolons:
SLURM Arguments
Function
nodes=min[-max]
Minimum and maximum number of nodes allocated to job.
The job allocation will at least contain the minimum number
of nodes.
mincpus=<n
cpus>
Specify minimum number of C PU s per node. Default value is 1.
mem=<value
>
Specify a m i
nimum amount of real memory of each node.
tmp=<value> Specify a minimum amount of temporary disk space of each
node.
constraint=<value> Specify a list of constraints. The list may include multiple
features separated by “&”or“|”. “&” represents AND-ed, “|”
represent
sOR-ed.
nodelist=<list of nodes>
Request a s
pecific list of nodes. The job will at least contain
these nodes. The list may be specified as a comma-separated
list of nodes, or a range of nodes.
exclude=<list of nodes> Requests that a specific list of hosts not be included in
resource allocated t o this job. The list may be specified as a
comma-separated list of nodes, or a range of nodes.
contiguous=yes
Request a mandatory contiguous range of nodes.
When this option is added to an LSF comman d line, it looks like th e following:
bsub -n num-procs -ext "SLURM[slurm-arguments]" [bsub-options]
[srun [srun-options]] jobname [job-options]
Refer to the LSF bsub comm and manpage for additional information about using the external
scheduler (-ext) option. See the srun manp age for more details about the above options
and their arguments.
Consider an HP XC system configuration where 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.
Example 7-2 shows one way to submit a parallel job to r un on a specific n ode or nodes.
Using LSF 7-11
Kommentare zu diesen Handbüchern