Skip to content

Commit dc2455f

Browse files
authored
Update mig.md
1 parent 049b557 commit dc2455f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/mig.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,17 @@ Use the ``vgpu`` metadata option to enable creation of mig devices on rebuild.
151151

152152
## GRES configuration
153153

154-
You should stop terraform templating out partitions.yml and specify `openhpc_nodegroups` manually.
154+
You should stop terraform templating out partitions.yml and specify `openhpc_nodegroups` manually. To do this
155+
set the `autogenerated_partitions_enabled` terraform variable to `false`. For example (`environments/production/tofu/main.tf`):
156+
157+
```
158+
module "cluster" {
159+
source = "../../site/tofu/"
160+
...
161+
# We manually populate this to add GRES. See environments/site/inventory/group_vars/all/partitions-manual.yml.
162+
autogenerated_partitions_enabled = false
163+
}
164+
```
155165

156166
GPU types can be determined by deploying slurm without any gres configuration and then running
157167
`sudo slurmd -G` on a compute node where GPU resources exist. An example is shown below:

0 commit comments

Comments
 (0)