File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
ansible_ssh_common_args : " -o StrictHostKeyChecking=no"
10
10
ansible_python_interpreter : " /usr/bin/python3"
11
11
vfio_pci_ids : |-
12
+ {% set gpu_list = [] %}
12
13
{% set output = [] %}
13
- {% for gpu_type in gpu_group_map | dict2items | map(attribute='value') | flatten | unique | default([]) %}
14
- {% set _ = output.append(stackhpc_gpu_data[gpu_type]['vendor_id'] + ':' + stackhpc_gpu_data[gpu_type]['product_id']) %}
14
+ {% for gpu_type in gpu_group_map | dict2items | default([]) %}
15
+ {% if gpu_type.key in group_names %}
16
+ {% set _ = gpu_list.append(gpu_type.value) %}
17
+ {% endif %}
18
+ {% endfor %}
19
+ {% for item in gpu_list | flatten | unique %}
20
+ {% set _ = output.append(stackhpc_gpu_data[item]['vendor_id'] + ':' + stackhpc_gpu_data[item]['product_id']) %}
15
21
{% endfor %}
16
22
{{ output | join(',') }}
17
23
reboot_timeout_s : " {{ 20 * 60 }}"
You can’t perform that action at this time.
0 commit comments