Method: ComputeUnit::AmdGpu#rom_bios

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

#rom_biosString

sometimes the kernel / driver extracted rom can be incorrect this is the bios gathered from the vbios itself.

Returns:

  • (String)
    • the bios according to the vbios rom



29
30
31
32
33
34
35
36
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 29

def rom_bios
  if !/\d{3}-/.match?([2])
    logger.warn("Invalid rom bios name for GPU#{index} using alternate name for #{[3]}")
    [3]
  elsif /\d{3}-/.match?([2])
    [2]
  end
end