File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,8 @@ AutoDetect={{ openhpc_gres_autodetect }}
44{% set inventory_group_name = openhpc_cluster_name ~ '_' ~ nodegroup .name %}
55{% set inventory_group_hosts = groups .get (inventory_group_name , []) %}
66{% set hostlist_string = inventory_group_hosts | hostlist_expression | join (',' ) %}
7- {% if nodegroup_gres_autodetect != 'off' %}
8- NodeName={{ hostlist_string }} AutoDetect={{ nodegroup_gres_autodetect }}
9- {% else %}
10- {% for gres in nodegroup .gres | default ([]) %}
11- {% set gres_name , gres_type , _ = gres .conf .split (':' ) %}
12- NodeName={{ hostlist_string }} Name={{ gres_name }} Type={{ gres_type }}{% if openhpc_gres_autodetect == nodegroup_gres_autodetect == 'off' %} File={{ gres.file | mandatory('The gres configuration dictionary: ' ~ gres ~ ' is missing the file key, but gres_autodetect is not specified. The error occured on node group: ' ~ nodegroup.name ~ '. Please add the file key or set gres_autodetect.') }}{% endif %}
13- {% endfor %} {# gres #}
14- {% endif %} {# autodetect #}
7+ {% for gres in nodegroup .gres | default ([]) %}
8+ {% set gres_name , gres_type , _ = gres .conf .split (':' ) %}
9+ NodeName={{ hostlist_string }} AutoDetect={{ nodegroup_gres_autodetect }} Name={{ gres_name }} Type={{ gres_type }}{% if openhpc_gres_autodetect == nodegroup_gres_autodetect == 'off' %} File={{ gres.file | mandatory('The gres configuration dictionary: ' ~ gres ~ ' is missing the file key, but gres_autodetect is not specified. The error occured on node group: ' ~ nodegroup.name ~ '. Please add the file key or set gres_autodetect.') }}{% endif %}
10+ {% endfor %} {# gres #}
1511{% endfor %} {# nodegroup #}
You can’t perform that action at this time.
0 commit comments