Function: device_get_uuid
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Description
Obtains the universally unique identifier (UUID) of a device.
Prototype
- C Prototype
1aclError aclrtDeviceGetUuid(int32_t deviceId, aclrtUuid *uuid)
- Python Function
1uuid, 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, 0 on success; else failure. |
Parent topic: Device Management