acltdtCreateQueue

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Creates a queue.

Prototype

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

Parameters

Parameter

Input/Output

Description

attr

Input

Pointer to the queue attribute configuration. For details about the type definition, see acltdtQueueAttr.

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; otherwise, failure. For details, see aclError.