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

#### 产品支持情况

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


#### 功能说明

获取队列属性值。


#### 函数原型

```
aclError acltdtGetQueueAttr(const acltdtQueueAttr *attr, acltdtQueueAttrType type, size_t len, size_t *paramRetSize, void *param)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| attr | 输入 | 队列属性配置信息的指针。 需提前调用acltdtCreateQueueAttr接口创建acltdtQueueAttr类型的数据。 |
| type | 输入 | 属性类型。类型定义请参见acltdtQueueAttrType. |
| len | 输入 | 属性值的字节数。 属性参数的类型为\*\_UINT64时，此处配置为8； 属性参数的类型为\*\_UINT32时，此处配置为4； 属性参数的类型为\*\_PTR时，若操作系统是32位，则此处配置为4；若操作系统是64位，则配置为8。 |
| paramRetSize | 输出 | 实际返回的属性值字节数的指针。 |
| param | 输出 | 指向属性值的指针。 |


#### 返回值说明

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