Method: ComputeUnit::AmdGpu#vddci_voltage_table
- Defined in:
- lib/compute_unit/gpus/amd_gpu.rb
#vddci_voltage_table ⇒ Array
Returns - array of hashes of voltages :mclk=>300, :volt=>750.
177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 177 def vddci_voltage_table # not sure if this is what mclk is but left it here anyways data = read_kernel_setting('pp_od_clk_voltage', nil) return data if data.nil? _, _, mclk = data.split(/OD_[S,M]CLK:\s?\n/) mclk.split("\n").map do |line| pstate, clk, volt, = line.gsub(/:|Mhz|mV/, '').split(/\s{2,}/).map(&:to_i) { pstate: pstate, clk: clk, volt: volt, type: :mclk } end end |