Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

where jobid is an id given to you by Slurm once you submit the job.


Anchor
Migrating from LSF
Migrating from LSF
Migrating from LSF

Down below are listed some frequently used LSF commands and their SLURM equivalents.

Essential commands

LSFSLURMDescription
bsub < script_filesbatch script_fileSubmit a job script to the scheduler
bqueuessinfoShow available scheduling queues
bjobssqueue -u <username>List user's pending and running jobs
bsub -n 1 -Is /bin/bashsrun -n 1 --pty /bin/bashRequest an interactive session 


Job specification

LSFSLURM Description
#BSUB#SBATCHScheduler directive
-q queue_name--partition=queue_name or  -p queue_nameSpecify the scheduling queue
-W   hh:mm:ss--time= hh:mm:ss  or -t hh:mm:ssSet the maximum runtime limit
-We  hh:mm:ss--time-min= hh:mm:ss  Set an estimated runtime 
-J job_name--job-name= jobname Specify a name for the job

-o filename

--output= filename or -o filename,

Standard job output
-e filename
--error=filename or -e filenameStandard job error output
-n number-of-cores--ntasks= number-of-cores   or -n number-of-coresNumber of CPU cores 
-m <host-group-name>--constraint="<host-group-name>"To select a node with a specific processor model 


Further commands and options are listed at the following link [32].

Anchor
Examples
Examples
Examples

Below some examples of submit files follow to help the user get comfortable with Slurm.
See them as a controlled playground to test some of the features of Slurm.

...