Method: ComputeUnit::AmdGpu#power_max_limit

Defined in:
lib/compute_unit/gpus/amd_gpu.rb

#power_max_limitNumeric

Returns - the maximum power that can be set.

Returns:

  • (Numeric)
    • the maximum power that can be set



289
290
291
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 289

def power_max_limit
  read_hwmon_data('power1_cap_max').to_i / 1000000
end