tuned-amdgpu/roles/tuned_amdgpu/templates/tuned.conf.j2

26 lines
767 B
Text
Raw Normal View History

2024-03-25 00:18:58 +00:00
{{ ansible_managed | comment }}
2021-10-13 02:03:21 +00:00
[main]
include={{ item.1 }}
summary={{ item.1 }} + TCP/RAID tweaks + AMDGPU {{ item.0 }}
2021-10-13 02:03:21 +00:00
[variables]
include=/etc/tuned/amdgpu-profile-vars.conf
# reference/execute AMDGPU control script
# used because some sysfs interfaces are transactional
# cannot be set by a single param in 'tuned'/[sysfs]
[gpuclockscript]
type=script
script={{ (tuned_amdgpu_profile_dir, 'amdgpu-clock.sh') | ansible.builtin.path_join }}
{# call the state-managing script with the selected profile, item.0, as an argument #}
{% if plugins is defined %}
{% for section, options in plugins.items() %}
{#+ give each plugin section some space +#}
[{{ section }}]
{% for key, value in options.items() %}
{{ key }}={{ value }}
{% endfor %}
{% endfor %}
{% endif %}