Method: ComputeUnit::AmdGpu#bios

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

#biosString

Returns - the name of the bios which is unique for every card.

Returns:

  • (String)
    • the name of the bios which is unique for every card


203
204
205
206
207
208
209
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 203

def bios
  @bios ||= begin
    a = read_kernel_setting('vbios_version', 'unreadable').upcase
    b = rom_bios
    /\d{3}-/.match?(b) ? b : a
  end
end