GetBufHandle

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

x

Atlas inference product AI Core

Atlas inference product Vector Core

x

Atlas training product

Function Usage

Obtains a buffer managed by the custom TBufPool based on offset.

Prototype

1
__aicore__ inline TBufHandle GetBufHandle(uint8_t offset)
Table 1 Parameters

Parameter

Input/Output

Meaning

offset

Input

Index value of a buffer

Constraints

The value of offset cannot exceed the value of BUFID_SIZE defined in EXTERN_IMPL_BUFPOOL. You can add verification as required.

Returns

The specified buffer, whose type is TBufHandle.

Example

For details, see Example.