7 lsf equivalents of slurm srun options, Table 7-2: lsf equivalents of slurm srun options, Section 7.7) – HP XC System 2.x Software User Manual

Page 107

Advertising
background image

comfortable interactive session, but every job submitted to this queue is executed on the LSF
execution host instead of the first allocated node.

Example 7-23 shows this subtle difference. Note that the LSF execution host in this example is

n20

:

Example 7-23: Submitting an Interactive Shell Program on the LSF Execution
Host

$ bsub -Is -n4 -ext "SLURM[nodes=4]" -q noscript /bin/bash

Job <96> is submitted to default queue <noscript>.

<<Waiting for dispatch ...>>

<<Starting on lsfhost.localdomain>>

$ hostname

n20

$ srun hostname

n1

n1

n2

n2

$ exit

$

7.7 LSF Equivalents of SLURM

srun

Options

Table 7-2 describes the

srun

options and lists their LSF equivalents.

Table 7-2: LSF Equivalents of SLURM

srun

Options

srun

Option

Description

LSF Equivalent

-n, --ntasks=ntasks

Number of processes (tasks) to run.

bsub -n <num>

-c, --cpus-per-task=ncpus

Number of CPUs per task. Min CPUs
per node = MAX(ncpus, mincpus)

HP XC does not provide this option because
the meaning of this option can be covered by
“bsub –n” and “mincpus=n”.

-N, --nodes=min[-max]

Minimum and maximum number
of nodes allocated to job. The
job allocation will at least contain
minimum number of nodes.

-ext “SLURM[nodes=min[-max]]”

--mincpus=n

Specify minimum number of CPUs
per node. Min cpus per node =
MAX(-c ncpus, --mincpus=n).
Default value is 1.

-ext “SLURM[mincpus=n]”

--mem=MB

Specify a minimum amount of real
memory of each node. By default,
job does not require.

-ext “SLURM[mincpus=n]”

--tmp=MB

Specify a minimum amount of
temporary disk space of each node.
By default, job does not require -ext.

“SLURM[tmp=MB]”

-C, --constraint=list

Specify a list of constraints. The
list may include multiple features
separated by “&” or “|”. “&”
represents ANDed, “|” represents
ORed. By default, job does not
require.

-ext “SLURM[constraint=list]”

Using LSF

7-23

Advertising