Method: ComputeUnit::AmdGpu#read_rom_data

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

#read_rom_dataString::IO

Returns - the contents of the rom file.

Returns:

  • (String::IO)
    • the contents of the rom file



39
40
41
42
43
44
45
46
47
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 39

def read_rom_data
  if File.exist?(debug_rom_path)
    IO.read(debug_rom_path, mode: 'rb')
  elsif File.exist?(rom_path)
    rom_data
  else
    ''
  end
end