acltdtCreateQueue

Applicability

Product

Supported

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

Description

Creates a queue.

Prototype

aclError acltdtCreateQueue(const acltdtQueueAttr *attr, uint32_t *qid)

Parameters

Parameter

Input/Output

Description

attr

Input

Pointer to the queue attribute configuration.

You need to call acltdtCreateQueueAttr to create data of the acltdtQueueAttr type, and call acltdtSetQueueAttr to set the queue attributes (such as the queue name) in advance.

If this parameter is set to nullptr, the default values of the queue attributes are used. That is, the queue name is automatically allocated by the system, and the default queue depth is 8.

qid

Output

Pointer to the queue ID.

Returns

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