跳转至

msptiBuffersCallbackCompleteFunc

Supported Products

Note: For details about Ascend product models, see Ascend Product Models.

Product Type Supported
Ascend 950 products
Atlas A3 training series/Atlas A3 inference series
Atlas A2 training series/Atlas A2 inference series
Atlas 200I/500 A2 inference products
Atlas inference series ×
Atlas training series products ×

Description

Registers the callback function with the MSPTI to release the data in the Activity Buffer. When using the activity API, a user (subscriber) needs to customize this function and register it with MSPTI. When the storage space of the activity buffer is full, MSPTI calls this function to notify the user to consume data in the activity buffer and release the memory space.

Function Prototype

typedef void(*msptiBuffersCallbackCompleteFunc)(uint8_t *buffer, size_t size, size_t validSize)

Parameter Description

Table 2 Command-line options

Address of the Size of the Size of the data recorded by the

Parameter Name

Input/Output

Description

buffer

Enter

.

Activity Buffer.

size

Enter

.

Activity Buffer, in bytes.

validSize

Input

Activity Buffer, in bytes.

Return Values

None