Method: ComputeUnit::AmdGpu#initialize
- Defined in:
- lib/compute_unit/gpus/amd_gpu.rb
#initialize(device_path, opts = {}) ⇒ AmdGpu
Returns a new instance of AmdGpu.
14 15 16 17 18 19 20 |
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 14 def initialize(device_path, opts = {}) super(device_path, opts) @pci_loc = File.basename(device_path) @model = opts[:model] if opts[:use_opencl] @uuid = "GPU#{index}" end |