Method: ComputeUnit::AmdGpu#power_limit
- Defined in:
- lib/compute_unit/gpus/amd_gpu.rb
#power_limit ⇒ Numeric
Returns - current power limit.
284 285 286 |
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 284 def power_limit read_hwmon_data('power1_cap', 0).to_i / 1000000 end |