Method: ComputeUnit::Gpu.find_all
- Defined in:
- lib/compute_unit/gpu.rb
.find_all(use_opencl = false) ⇒ Array
Returns - returns an array of gpu objects, sorted by index.
278 279 280 281 282 283 |
# File 'lib/compute_unit/gpu.rb', line 278 def self.find_all(use_opencl = false) require 'compute_unit/gpus/amd_gpu' require 'compute_unit/gpus/nvidia_gpu' g = compute_classes.map { |klass| klass.find_all(use_opencl) }.flatten g.sort_by(&:index) end |