acltdtAppendBufChain

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

x

Atlas training products

x

Description

Adds a shared buffer to the shared buffer chain. A shared buffer chain supports a maximum of 128 shared buffers. You can obtain a shared buffer by calling acltdtAllocBuf or acltdtCopyBufRef.

Prototype

aclError acltdtAppendBufChain(acltdtBuf headBuf, acltdtBuf buf)

Parameters

Parameter

Input/Output

Description

headBuf

Input

First shared buffer at the head of the shared buffer chain.

buf

Input

Shared buffer to add.

Returns

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

Restrictions

  • For the Atlas 200I/500 A2 inference products, this API can be used only in the Ascend RC.