---
title: aclrtDeviceGetUuid
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_2054.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_2054.html
indexId: 62a3c28ed944a06de48d6abe6f3a0d0a0750f6aa00b4a796a738d68009c4137968
---
# aclrtDeviceGetUuid

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | ☓ |
| Atlas 推理系列产品 | ☓ |
| Atlas 训练系列产品 | ☓ |


#### 功能说明

获取Device的唯一标识UUID（Universally Unique Identifier）。


#### 函数原型

```
aclError aclrtDeviceGetUuid(int32_t deviceId, aclrtUuid *uuid)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| deviceId | 输入 | Device ID，与aclrtSetDevice接口中的Device ID保持一致。 |
| uuid | 输出 | Device的唯一标识。类型定义请参见aclrtUuid。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。
