File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,15 @@ AutoDetect=off
22{% for part in openhpc_slurm_partitions %}
33{% set nodelist = [] %}
44{% for group in part .get ('groups' , [part ]) %}
5+ {% set group_name = group .cluster_name |default (openhpc_cluster_name ) ~ '_' ~ group .name %}
6+ {% set inventory_group_hosts = groups .get (group_name , []) %}
57{% if 'gres_autodetect' in group %}
8+ {% for hostlist in (inventory_group_hosts | hostlist_expression ) %}
69NodeName={{ hostlist }} AutoDetect={{ group.gres_autodetect }}
10+ {% endfor %}
711{% elif 'gres' in group %}
812{% for gres in group .gres %}
913{% set gres_name , gres_type , _ = gres .conf .split (':' ) %}
10- {% set group_name = group .cluster_name |default (openhpc_cluster_name ) ~ '_' ~ group .name %}
11- {% set file = gres .file | default ('' ) %}
12- {% set inventory_group_hosts = groups .get (group_name , []) %}
1314{% for hostlist in (inventory_group_hosts | hostlist_expression ) %}
1415NodeName={{ hostlist }} Name={{ gres_name }} Type={{ gres_type }} File={{ gres.file }}
1516
You can’t perform that action at this time.
0 commit comments