aclrtDeviceGetUuid

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function

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

Prototype

1
aclError aclrtDeviceGetUuid(int32_t deviceId, aclrtUuid *uuid)

Parameters

Parameter

Input/Output

Description

deviceId

Input

Device ID, which must be the same as that in the aclrtSetDevice API.

uuid

Output

Unique ID of a device. For the type definition, see aclrtUuid.

Returns

0 on success; otherwise, failure. For details, see aclError.