Method: ComputeUnit::Device.subsystem_vendor

Defined in:
lib/compute_unit/device.rb

.subsystem_vendor(device_path) ⇒ String

example: XFX is the reseller of the AMD chips

Returns:

  • (String)
    • the vendor number ie. 1002 (can be different from vendor)



241
242
243
# File 'lib/compute_unit/device.rb', line 241

def self.subsystem_vendor(device_path)
  read_kernel_setting(device_path, 'subsystem_vendor', '').slice(2, 6)
end