role-ify
This commit is contained in:
parent
23f0ad541d
commit
b525797f8f
7 changed files with 155 additions and 155 deletions
15
roles/tuned_amdgpu/defaults/main.yml
Normal file
15
roles/tuned_amdgpu/defaults/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
# defaults file for tuned_amdgpu
|
||||
#
|
||||
# vars handling unit conversion RE: power capabilities/limits
|
||||
# the discovered board limit for power capability; in microWatts, then converted
|
||||
power_max: "{{ power_max_b64['content'] | b64decode }}"
|
||||
board_watts: "{{ power_max | int / 1000000 }}"
|
||||
|
||||
# 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 }}"
|
||||
profile_watts: "{{ profile_microwatts | int / 1000000 }}"
|
Loading…
Add table
Add a link
Reference in a new issue