Method: ComputeUnit::Gpu.devices
- Defined in:
- lib/compute_unit/gpu.rb
.devices ⇒ Array
Note:
the devices are sorted by the device path
Note:
this can mean AMD, NVIDIA, Intel or other crappy embedded devices
Returns - returns a list of device paths of all devices considered for display.
55 56 57 58 59 |
# File 'lib/compute_unit/gpu.rb', line 55 def self.devices @devices ||= ComputeUnit::ComputeBase.devices.find_all do |device| ComputeUnit::Device.device_class(device) == DEVICE_CLASS end.sort end |