Skip to content

Commit 1edd992

Browse files
committed
README tweaks
1 parent 8464abb commit 1edd992

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ unique set of homogenous nodes:
5959
`free --mebi` total * `openhpc_ram_multiplier`.
6060
* `ram_multiplier`: Optional. An override for the top-level definition
6161
`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.
6363
* `gres`: Optional. List of dicts defining [generic resources](https://slurm.schedmd.com/gres.html). Each dict should define:
6464
- `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.
6565
- `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.
6767
* `features`: Optional. List of [Features](https://slurm.schedmd.com/slurm.conf.html#OPT_Features) strings.
6868
* `node_params`: Optional. Mapping of additional parameters and values for
6969
[node configuration](https://slurm.schedmd.com/slurm.conf.html#lbAE).
@@ -354,4 +354,23 @@ The RPMs will be created in ` /root/rpmbuild/RPMS/x86_64/`. The method to distri
354354
each compute node is out of scope of this document. You can either use a custom package repository
355355
or simply install them manually on each node with Ansible.
356356

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+
357376
<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

Comments
 (0)