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

srun Option

-n

--ntasks=ntasks

-c

--processors-per-task=ntasks

-N

--nodes=min[-max]

Description

Number of processes (tasks) to run.

Specifies the number of cores per task. Min processors per node = MAX(ncpus, mincpus)

Specifies the minimum and, optionally, maximum number of nodes allocated to job. The job allocation will contain at least the minimum number of nodes.

LSF-HPC Equivalent

bsub -n num

HP XC does not provide this option because the meaning of this option can be covered by bsub -nand mincpus=n.

-ext "SLURM[nodes=minmax]"

where minmax is min[-max]

--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

--nodelist=node1,...nodeN

-x

--exclude=node1,...nodeN

Requests a specific list of nodes. The job will -ext "SLURM[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.

Requests that a specific list of hosts be -ext "SLURM[exclude=node1,...nodeN]" excluded in the resource allocated to this

job. By default, job does not require.

-p

--partition=partition

--contiguous

Requests resources from partition

You cannot use this option. The lsf partition

partition.

is the only one provided.

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.

You cannot use this option. When creating allocation.

--job-name=job_name

 

SLURM sets LSF-HPC job id automatically.

 

 

Using LSF-HPC 87

Page 87
Image 87
HP XC System 3.x Software manual Bsub -iinputfile