Method: ComputeUnit::AmdGpu#board_name

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

#board_nameString

for vegas we have to also get the compute units

Returns:

  • (String)
    • returns the name of compute board



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