Job Submission
Job Submission
[ Command line | Job submission file | Interactive ]
There are three ways to run a job with SLURM.
Command line
A job can simply be submitted from the command line with srun:
[ Command line | Job submission file | Interactive ]
There are three ways to run a job with SLURM.
A job can simply be submitted from the command line with srun:
The official name for batch scripts in SLURM is Job Submission Files, but here we will use both names interchangeably.
$ squeue -u <username>
[Detailed description of scheduling | Calculating priority | Allocation policy on Kebnekaise ]
The batch system policy is fairly simple, and currently states that
There are many more commands than the ones we have chosen to look at below, but they are the most commonly used ones. You can find more information on the SLURM homepage: SLURM documentation
You can run programs either by giving all the commands on the command line or by submitting a job script. If you ask for the resources on the command line, you will wait for the program to run before you can use the window again (unless you can send it to the background with &).
Once a parallel program has been successfully compiled it can be run on multi-processor/multi-core computing nodes directly or, in production environment, by means of a batch system. Batch systems keeps track of available system resources and takes care of scheduling jobs of multiple users running their tasks simultaneously. It typically organizes submitted jobs into some sort of prioritized queue. The batch system is also used to enforce local system resource usage and job scheduling policies.