Method: ComputeUnit::AmdGpu#core_clock
- Defined in:
- lib/compute_unit/gpus/amd_gpu.rb
#core_clock ⇒ Integer
Returns - the core clock speed.
130 131 132 133 134 |
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 130 def core_clock data = read_kernel_setting('pp_dpm_sclk', '').split("\n") item = data.find { |d| d.include?('*') } item.nil? ? item : item.match(/\d{2,6}/).to_a.first.to_i end |