Method: ComputeUnit::AmdGpu#temp

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

#tempInteger

Returns - returns temp of gpu in celius.

Returns:

  • (Integer)
    • returns temp of gpu in celius


104
105
106
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 104

def temp
  read_hwmon_data('temp1_input', 0).to_i / 1000
end