Table 10-3 LSF Equivalents of SLURM srun Options (continued)

srun Option

Description

LSF Equivalent

-w

Requests a specific list of nodes. The

-ext

--nodelist=node1,...nodeN

job will at least contain these nodes.

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

 

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

--exclude=node1,...nodeN

excluded in the resource allocated to

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

 

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.

-ext "SLURM[contiguous=yes]"

 

By default, job does not require

 

 

contiguous nodes.

 

 

 

 

-o

Specifies the mode for stdout

bsub -ooutput_file

--output=file_name

redirection.

 

 

 

 

 

 

-o

Specify the mode for stdout

You can use this option when launching

--output=none,tasked

redirection.

parallel tasks.

 

 

 

-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

bsub -eerror_file

--error=file_name

redirected.

 

 

 

-e

Specify how stderr is to be

--error=none,tasked

redirected.

 

You can use when launching parallel tasks.

-J

Specify a name for the job.

You cannot use this option. When creating

--job-name=job_name

 

allocation. SLURM sets LSF job id

 

automatically.

 

 

 

 

 

--uid=user

Root attempts to submit or run a job

You cannot use this option. LSF uses it to create

 

as normal user.

allocation.

 

 

 

-t

Establish a time limit to terminate the

bsub -W runlimit

--time=minutes

job after specified number of minutes.

 

 

 

 

 

 

--gid=group

Root attempts to submit or run a job

You cannot use this option. LSF uses this option

 

as group.

to create allocation.

 

 

 

-A

Allocate resource and spawn a shell.

You cannot use this option. LSF uses this option

--allocate

 

to create allocation.

 

 

 

 

 

--no-shell

Immediately exit after allocating

You cannot use this option. LSF uses this option

 

resources.

to create allocation.

 

 

 

-I

Allocate immediately or fail.

You cannot use this option. LSF uses this option

--immediate

 

to create allocation.

 

 

 

 

 

104 Using LSF