cuda.bindings._v2.driver.device_get_name#

cuda.bindings._v2.driver.device_get_name(int len, int dev) → bytes#

Returns an identifier string for the device.

Returns an ASCII string identifying the device dev in the NULL-terminated string pointed to by name. length specifies the maximum length of the string that may be returned. name is shortened to the specified length, if length is less than the device name.

Parameters:
  • len (int) – Maximum length of string to store in name.

  • dev (int) – Device to get identifier string for.

Returns:

Returned identifier string for the device.

Return type:

bytes

See also

cuDeviceGetName