Slurm

From ISOR
(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
 
=== Batch jobs ===
 
=== Batch jobs ===
  
* Job scripts
+
Slurm provides support for unattended execution of jobs on the cluster's resources , which is perhaps the most common way of using it (batch mode).
Job scripts are standard BASH-scripts with some extra information for the slurm job scheduler.
+
For this purpose, a shell script is passed to the job scheduler, containing
Hence, we start with the first line of the script, telling the OS which kind of UNIX shell to use for interpreting the commands in the script.  
+
* the commands to be executed and
 +
* some extra information for the slurm job scheduler (optional).
 +
 
 +
Let us take a closer look at how to create such a script. We start with the first line, telling the OS which kind of UNIX shell to use for interpreting the commands in the script.  
 
  #!/bin/bash
 
  #!/bin/bash
  

Revision as of 12:39, 22 September 2021

The Slurm job scheduler on the High Performance WiWi Cluster (HPC3)

Contents

1 Introduction

2 Cluster topology & hardware specs

3 Submitting jobs

3.1 Batch jobs

Slurm provides support for unattended execution of jobs on the cluster's resources , which is perhaps the most common way of using it (batch mode). For this purpose, a shell script is passed to the job scheduler, containing

  • the commands to be executed and
  • some extra information for the slurm job scheduler (optional).

Let us take a closer look at how to create such a script. We start with the first line, telling the OS which kind of UNIX shell to use for interpreting the commands in the script.

#!/bin/bash

Then we add a series of directives for the slurm job scheduler, each starting with a '#SBATCH'. Although the '#' character usually indicates a comment, this specific string gets interpreted by slurm and allows to set various options.

#SBATCH -N 1
#SBATCH --ntasks-per-node=16
#SBATCH --ntasks-per-core=1
#SBATCH --partition=mem_0064
#SBATCH --qos=normal_0064
#SBATCH --mail-type=BEGIN,END
#SBATCH --mail-user=roland.braune@univie.ac.at


3.2 Interactive jobs

Personal tools
Namespaces

Variants
Actions
Navigation
Tools