...
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
Migrating from LSF | |
Migrating from LSF |
Down below are listed some frequently used LSF commands and their SLURM equivalents.
Essential commands
LSF | SLURM | Description |
---|---|---|
bsub < script_file | sbatch script_file | Submit a job script to the scheduler |
bqueues | sinfo | Show available scheduling queues |
bjobs | squeue -u <username> | List user's pending and running jobs |
bsub -n 1 -Is /bin/bash | srun -n 1 --pty /bin/bash | Request an interactive session |
Job specification
LSF | SLURM | Description |
---|---|---|
#BSUB | #SBATCH | Scheduler directive |
-q queue_name | --partition=queue_name or -p queue_name | Specify the scheduling queue |
-W hh:mm:ss | --time= hh:mm:ss or -t hh:mm:ss | Set 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 filename | Standard job error output |
-n number-of-cores | --ntasks= number-of-cores or -n number-of-cores | Number 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 | ||||
---|---|---|---|---|
|
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.
...