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
|
|
|
|
profile_name: "{{ item.0.key }}"
|
|
|
|
profile_percentage: "{{ (item.0.value.pwr_cap_multi * 100.0) | round(2) }}"
|
|
|
|
profile_multi: "{{ item.0.value.pwr_cap_multi }}"
|
|
|
|
profile_microwatts: "{{ power_max | float * profile_multi | float }}"
|
2022-11-27 06:51:39 +00:00
|
|
|
profile_watts: "{{ profile_microwatts | int / 1000000 }}"
|