Method: ComputeUnit::AmdGpu.find_all

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

.find_all(use_opencl = false) ⇒ Array

Returns - returns and array of gpu instances of AMD type only.

Returns:

  • (Array)
    • returns and array of gpu instances of AMD type only



325
326
327
328
329
330
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 325

def self.find_all(use_opencl = false)
  devices.map.with_index do |device_path, _index|
    found_index = ComputeUnit::Gpu.found_devices.index(device_path)
    create_from_path(device_path, found_index, use_opencl)
  end
end