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: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,11 @@ unique set of homogenous nodes:
59
59
`free --mebi` total * `openhpc_ram_multiplier`.
60
60
*`ram_multiplier`: Optional. An override for the top-level definition
61
61
`openhpc_ram_multiplier`. Has no effect if `ram_mb` is set.
62
-
*`gres_autodetect`: Optional. The [auto detection mechanism](https://slurm.schedmd.com/gres.conf.html#OPT_AutoDetect) to use for the generic resources. Note: you must still define the `gres` dictionary (see below) but you only need the define the `conf` key.
62
+
*`gres_autodetect`: Optional. The [auto detection mechanism](https://slurm.schedmd.com/gres.conf.html#OPT_AutoDetect) to use for the generic resources. Note: you must still define the `gres` dictionary (see below) but you only need the define the `conf` key. See [GRES autodetection](#gres-autodetection) section below.
63
63
*`gres`: Optional. List of dicts defining [generic resources](https://slurm.schedmd.com/gres.html). Each dict should define:
64
64
-`conf`: A string with the [resource specification](https://slurm.schedmd.com/slurm.conf.html#OPT_Gres_1) but requiring the format `<name>:<type>:<number>`, e.g. `gpu:A100:2`. Note the `type` is an arbitrary string.
65
65
-`file`: Omit if `gres_autodetect` is set. A string with the [File](https://slurm.schedmd.com/gres.conf.html#OPT_File) (path to device(s)) for this resource, e.g. `/dev/nvidia[0-1]` for the above example.
66
-
Note [GresTypes](https://slurm.schedmd.com/slurm.conf.html#OPT_GresTypes) must be set in `openhpc_config` if this is used.
66
+
Note [GresTypes](https://slurm.schedmd.com/slurm.conf.html#OPT_GresTypes) must be set in `openhpc_config` if this is used.
67
67
*`features`: Optional. List of [Features](https://slurm.schedmd.com/slurm.conf.html#OPT_Features) strings.
68
68
*`node_params`: Optional. Mapping of additional parameters and values for
@@ -354,4 +354,23 @@ The RPMs will be created in ` /root/rpmbuild/RPMS/x86_64/`. The method to distri
354
354
each compute node is out of scope of this document. You can either use a custom package repository
355
355
or simply install them manually on each node with Ansible.
356
356
357
+
#### Configuration example
358
+
359
+
A configuration snippet is shown below:
360
+
361
+
```yaml
362
+
openhpc_cluster_name: hpc
363
+
openhpc_nodegroups:
364
+
- name: general
365
+
- name: large
366
+
node_params:
367
+
CoreSpecCount: 2
368
+
- name: gpu
369
+
gres_autodetect: nvml
370
+
gres:
371
+
- conf: gpu:A100:2
372
+
```
373
+
for additional context refer to the GPU example in: [Multiple Nodegroups](#multiple-nodegroups).
374
+
375
+
357
376
<b id="slurm_ver_footnote">1</b> Slurm 20.11 removed `accounting_storage/filetxt` as an option. This version of Slurm was introduced in OpenHPC v2.1 but the OpenHPC repos are common to all OpenHPC v2.x releases. [↩](#accounting_storage)
0 commit comments