You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tools/slurm.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,25 @@ SLURM is an open-source, highly scalable job scheduler that allocates computing
9
9
!!! todo
10
10
document `--account`, `--constrant` and other generic flags.
11
11
12
+
[](){#ref-slurm-partitions}
12
13
## Partitions
13
14
14
15
At CSCS, SLURM is configured to accommodate the diverse range of node types available in our HPC clusters. These nodes vary in architecture, including CPU-only nodes and nodes equipped with different types of GPUs. Because of this heterogeneity, SLURM must be tailored to ensure efficient resource allocation, job scheduling, and workload management specific to each node type.
15
16
16
17
Each type of node has different resource constraints and capabilities, which SLURM takes into account when scheduling jobs. For example, CPU-only nodes may have configurations optimized for multi-threaded CPU workloads, while GPU nodes require additional parameters to allocate GPU resources efficiently. SLURM ensures that user jobs request and receive the appropriate resources while preventing conflicts or inefficient utilization.
17
18
19
+
[](){#ref-slurm-partition-debug}
20
+
### Debug partition
21
+
The SLURM `debug` partition is useful for quick turnaround workflows. The partition has a short maximum time (timelimit can be seen with `sinfo -p debug`), and a low number of maximum nodes (the `MaxNodes` can be seen with `scontrol show partition=debug`).
22
+
23
+
[](){#ref-slurm-partition-normal}
24
+
### Normal partition
25
+
This is the default partition, and will be used when you do not explicitly set a partition. This is the correct choice for standard jobs. The maximum time is usually set to 24 hours (`sinfo -p normal` for timelimit), and the maximum nodes can be as much as nodes are available.
26
+
18
27
The following sections will provide detailed guidance on how to use SLURM to request and manage CPU cores, memory, and GPUs in jobs. These instructions will help users optimize their workload execution and ensure efficient use of CSCS computing resources.
19
28
20
29
[](){#ref-slurm-gh200}
21
-
###NVIDIA GH200 GPU Nodes
30
+
## NVIDIA GH200 GPU Nodes
22
31
23
32
The [GH200 nodes on Alps][ref-alps-gh200-node] have four GPUs per node, and SLURM job submissions must be configured appropriately to best make use of the resources.
24
33
Applications that can saturate the GPUs with a single process per GPU should generally prefer this mode.
@@ -40,7 +49,7 @@ See [Scientific Applications][ref-software-sciapps] for information about recomm
40
49
If the variable is unset or empty all GPUs are visible to the rank and the rank will in most cases only use the first GPU.
41
50
42
51
[](){#ref-slurm-gh200-single-rank-per-gpu}
43
-
####One rank per GPU
52
+
### One rank per GPU
44
53
45
54
Configuring SLURM to use one GH200 GPU per rank is easiest done using the `--ntasks-per-node=4` and `--gpus-per-task=1` SLURM flags.
46
55
For advanced users, using `--gpus-per-task` is equivalent to setting `CUDA_VISIBLE_DEVICES` to `SLURM_LOCALID`, assuming the job is using four ranks per node.
@@ -59,7 +68,7 @@ srun <application>
59
68
Omitting the `--gpus-per-task` results in `CUDA_VISIBLE_DEVICES` being unset, which will lead to most applications using the first GPU on all ranks.
60
69
61
70
[](){#ref-slurm-gh200-multi-rank-per-gpu}
62
-
####Multiple ranks per GPU
71
+
### Multiple ranks per GPU
63
72
64
73
Using multiple ranks per GPU can improve performance e.g. of applications that don't generate enough work for a GPU using a single rank, or ones that scale badly to all 72 cores of the Grace CPU.
65
74
In these cases SLURM jobs must be configured to assign multiple ranks to a single GPU.
Copy file name to clipboardExpand all lines: docs/vclusters/clariden.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@
6
6
7
7
This page is a cut and paste of some of Todi's old documentation, which we can turn into a template.
8
8
9
-
## Cluster Details
9
+
## Cluster Specification
10
+
### Hardware
11
+
Clariden consists of ~1200 [Grace-Hopper nodes][ref-alps-gh200-node]. Most nodes are in the [`normal` slurm partition][ref-slurm-partition-normal], while a few nodes are in the [`debug` partition][ref-slurm-partition-debug].
0 commit comments