Table 9-2 LSF-HPC Equivalents of SLURM srun Options

srun Option

Description

LSF-HPC Equivalent

-n

Number of processes (tasks) to run.

bsub -n num

--ntasks=ntasks

 

 

 

 

 

-c

Specifies the number of cores per task. Min

HP XC does not provide this option because the

--processors-per-task=ntasks

processors per node = MAX(ncpus, mincpus)

meaning of this option can be covered by bsub -n

 

 

and mincpus=n.

-N

Specifies the minimum and, optionally,

-ext "SLURM[nodes=minmax]"

--nodes=min[-max]

maximum number of nodes allocated to job.

where minmax is min[-max]

 

The job allocation will contain at least the

 

 

minimum number of nodes.

 

 

 

 

--mincpus=n

Specifies the minimum number of cores per

-ext "SLURM[mincpus=n]"

 

node. Min processors per node = MAX(-c

 

 

ncpus, --mincpus=n). Default value is 1.

 

 

 

 

--mem=MB

Specifies a minimum amount of real memory

-ext "SLURM[mem=MB]"

 

of each node. By default, job does not

 

 

require -ext.

 

 

 

 

--tmp=MB

Specifies a minimum amount of temporary

-ext "SLURM[tmp=MB]"

 

disk space of each node. By default, job

 

 

does not require -ext.

 

 

 

 

-C

--constraint=list

Specifies a list of constraints. The list may

-ext "SLURM[constraint=list]"

include multiple features separated by the &

 

character (meaning ANDed) or the

 

(meaning ORed). By default, job does not

 

require -ext.

 

-w

Requests a specific list of nodes. The job will

-ext "SLURM[nodelist=node1,...nodeN]"

--nodelist=node1,...nodeN

at least contain these nodes. The list may be

 

specified as a comma-separated list of

 

 

nodes, or a range of nodes. By default, job

 

 

does not require -ext.

 

 

 

 

-x

Requests that a specific list of hosts be

-ext "SLURM[exclude=node1,...nodeN]"

--exclude=node1,...nodeN

excluded in the resource allocated to this

 

job. By default, job does not require.

 

 

 

 

-p

Requests resources from partition

You cannot use this option. The lsf partition

--partition=partition

partition.

is the only one provided.

 

 

 

 

 

--contiguous

Requests a contiguous range of nodes. By

-ext "SLURM[contiguous=yes]"

 

default, job does not require contiguous

 

 

nodes.

 

 

 

 

-o

Specifies the mode for stdout redirection.

bsub -ooutput_file

--output=file_name

 

 

 

 

 

-o

Specify the mode for stdout redirection.

You can use this option when launching parallel tasks.

--output=none,tasked

 

 

 

 

 

-i

Specify how stdin is to be redirected.

bsub -iinput_file

--input=file_name

 

 

 

 

 

-i

Specify how stdin is to be redirected.

You can use when launching parallel tasks.

--input=none,tasked

 

 

 

 

 

-e

Specify how stderr is to be redirected.

bsub -eerror_file

--error=file_name

 

 

 

 

 

-e

Specify how stderr is to be redirected.

You can use when launching parallel tasks.

--error=none,tasked

 

 

-J

Specify a name for the job.

--job-name=job_name

 

You cannot use this option. When creating allocation. SLURM sets LSF-HPC job id automatically.

Using LSF-HPC 87