get_device_name

dragon.cuda.get_device_name(device_index=None)[source]

Return the name of specified device.

If device_index is None, the current device will be selected.

Parameters:
  • device_index (int, optional) The device index.
Returns:

str The device name.