---
title: acltdtGetQueueAttr
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/API/runtimeapi/aclcppdevg_03_1641.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/API/runtimeapi/aclcppdevg_03_1641.html
indexId: 25a9e7606edffce396c6807e66c73e42f4fd449129c9943bead983f505fc893e79
---
# acltdtGetQueueAttr

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Ascend 950PR / Ascend 950DT | √ |
| 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 | 输入 | 属性值的字节数。 type取值的枚举名以\_UINT64结尾时，此处配置为8； type取值的枚举名以\_UINT32结尾时，此处配置为4； type取值的枚举名以\_PTR结尾时，若操作系统是32位，则此处配置为4；若操作系统是64位，则配置为8。 |
| paramRetSize | 输出 | 实际返回的属性值字节数的指针。 |
| param | 输出 | 指向属性值的指针。 |


#### 返回值说明

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