acltdtGetQueueAttr

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Obtains queue attribute values.

Prototype

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

Parameters

Parameter

Input/Output

Description

attr

Input

Pointer to the queue attribute configuration.

Call acltdtCreateQueueAttr to create data of the acltdtQueueAttr type in advance.

type

Input

Attribute type. For details about the type definition, see acltdtQueueAttrType.

len

Input

Number of bytes of an attribute value.

  • If the enumeration value of type ends with _UINT64, set this parameter to 8.
  • If the enumeration value of type ends with _UINT32, set this parameter to 4.
  • If the enumeration value of type ends with _PTR, set this parameter to 4 for a 32-bit OS or 8 for a 64-bit OS.

paramRetSize

Output

Pointer to the number of bytes of the actually returned attribute value.

param

Output

Pointer to the attribute value.

Returns

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