Function: device_get_uuid

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Not supported
  • Atlas inference products: Not supported
  • Atlas training products: Not supported

Function

Obtains the universally unique identifier (UUID) of a device.

Prototype

  • C Prototype

    aclError aclrtDeviceGetUuid(int32_t deviceId, aclrtUuid *uuid)
    
  • Python Function

    uuid, ret = acl.rt.device_get_uuid(device_id)
    

Parameters

Parameter Description
device_id Int, NPU device ID.

Return Values

Return Value Description
uuid Attribute value, which is the UUID of a device. For details, see aclrtUuid.
ret Int. If 0 is returned, the operation is successful. If other values are returned, the operation fails.