From 631ca7bc1e75e034c5a5adecf5b56778c28c4dbe Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Tue, 7 Jun 2022 19:22:48 -0500 Subject: [PATCH] move some rudimentary unit conversion vars from play to group_vars/all --- group_vars/all | 17 +++++++++++++++++ playbook.yml | 10 ++-------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 group_vars/all diff --git a/group_vars/all b/group_vars/all new file mode 100644 index 0000000..1ef3a9d --- /dev/null +++ b/group_vars/all @@ -0,0 +1,17 @@ +--- +# misc default vars handling unit conversion RE: power capabilities/limits +# +# the discovered board limit for power capability +power_max: "{{ power_max_b64['content'] | b64decode }}" + +# convert discovered board power limit (int) to a float +# for some math in the tuned config template +power_max_float: "{{ power_max_b64['content'] | b64decode |float }}" + +# determine the microWatt limits based on the provided multipliers +power_cap_custom_float: "{{ power_max |float * power_max_custom_multi }}" +power_cap_default_float: "{{ power_max |float * power_max_default_multi }}" + +# convert the microWatt limits to ints for some math - also in the tuned config template +power_cap_custom: "{{ power_cap_custom_float |int }}" +power_cap_default: "{{ power_cap_default_float |int }}" diff --git a/playbook.yml b/playbook.yml index 3e6186f..b3ff301 100644 --- a/playbook.yml +++ b/playbook.yml @@ -6,14 +6,8 @@ # 0.5 = 50% # 1.0 = 100% (of card power capability, not stock limits) # should not exceed 1.0, must be a float. driver will do some rounding/stepping - power_max_custom_multi: 1.0 - power_max_default_multi: 0.75 - power_max: "{{ power_max_b64['content'] | b64decode }}" - power_max_float: "{{ power_max_b64['content'] | b64decode |float }}" - power_cap_custom_float: "{{ power_max |float * power_max_custom_multi }}" - power_cap_default_float: "{{ power_max |float * power_max_default_multi }}" - power_cap_custom: "{{ power_cap_custom_float |int }}" - power_cap_default: "{{ power_cap_default_float |int }}" # used to limit GPU power to some lower percentage on 'low' perf modes + power_max_custom_multi: 1.0 # used to boost GPU power to board capability for some overclocking + power_max_default_multi: 0.75 # used to limit GPU power to some lower percentage on default perf mode gpu_clock_min: "2200" # minimum GPU clock (in 3D) - defaults 500Mhz gpu_clock_max: "2575" # maximum GPU clock (also 3D) - range allows up to 3000Mhz. default 2529 gpumem_clock_max: "1075" # maximum GPU memory clock - default 1000Mhz, range allows 1075Mhz