Method: ComputeUnit::AmdGpu#board_name
- Defined in:
- lib/compute_unit/gpus/amd_gpu.rb
#board_name ⇒ String
for vegas we have to also get the compute units
64 65 66 67 68 69 70 71 |
# File 'lib/compute_unit/gpus/amd_gpu.rb', line 64 def board_name @board_name ||= begin return nil unless opencl_board_name name = opencl_board_name.sub(/Series|\(TM\)/, '').sub('Graphics', '').sub(/\s{2}/, ' ').strip /vega/i.match?(name) ? "#{name} #{opencl_units}" : name end end |