Skip to content

Commit ccaf02a

Browse files
committed
auto gres v2
1 parent a7e8a66 commit ccaf02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/gres.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NodeName={{ hostlist_string }} AutoDetect={{ nodegroup_gres_autodetect }}
1010
{% else %}
1111
{% for gres in gres_list %}
1212
{% set gres_name, gres_type, _ = gres.conf.split(':') %}
13-
NodeName={{ hostlist_string }} Name={{ gres_name }} Type={{ gres_type }} 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.') }}
13+
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 %}
1414
{% endfor %}{# gres #}
1515
{% endif %}{# autodetect #}
1616
{% endfor %}{# nodegroup #}

0 commit comments

Comments
 (0)