Method: ComputeUnit::Device.device_vendor

Defined in:
lib/compute_unit/device.rb

.device_vendor(device_path) ⇒ String

Returns - the vendor number ie. 1002.

Returns:

  • (String)
    • the vendor number ie. 1002



251
252
253
# File 'lib/compute_unit/device.rb', line 251

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