2022-06-08 00:22:48 +00:00
|
|
|
---
|
2022-11-27 06:51:39 +00:00
|
|
|
# defaults file for tuned_amdgpu
|
2022-06-08 00:22:48 +00:00
|
|
|
#
|
2022-11-27 06:51:39 +00:00
|
|
|
# vars handling unit conversion RE: power capabilities/limits
|
|
|
|
# the discovered board limit for power capability; in microWatts, then converted
|
2022-06-08 00:22:48 +00:00
|
|
|
power_max: "{{ power_max_b64['content'] | b64decode }}"
|
2022-11-27 06:51:39 +00:00
|
|
|
board_watts: "{{ power_max | int / 1000000 }}"
|
2022-06-08 00:22:48 +00:00
|
|
|
|
2022-11-27 04:43:52 +00:00
|
|
|
# internals for profile power calculations
|
|
|
|
# item in the context of the with_nested loops in the play
|
2023-04-08 17:28:51 +00:00
|
|
|
profile_name: "{{ item.0 }}"
|
|
|
|
|
|
|
|
# determine percentage for human-friendly comments
|
|
|
|
power_default_pct: "{{ (gpu_power_multi.default * 100.0) | round(2) }}"
|
|
|
|
power_oc_pct: "{{ (gpu_power_multi.overclock * 100.0) | round(2) }}"
|
|
|
|
|
|
|
|
# in microWatts, actually written to sysfs
|
|
|
|
power_default_mw: "{{ (power_max | float) * (gpu_power_multi.default | float) }}"
|
|
|
|
power_oc_mw: "{{ (power_max | float) * (gpu_power_multi.overclock | float) }}"
|
|
|
|
|
|
|
|
# wattages - more human-friendly comments
|
|
|
|
power_default_watts: "{{ (power_default_mw | int) / 1000000 }}"
|
|
|
|
power_oc_watts: "{{ (power_oc_mw | int) / 1000000 }}"
|
|
|
|
|
|
|
|
amdgpu_profiles:
|
|
|
|
- default
|
|
|
|
- overclock
|