跳转至

msptiActivityFlushAll

Supported Products

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

Product Type Supported
Ascend 950 products
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 series products ×

Description

A user (subscriber) calls the callback function to write all activity data in the buffer to the user memory.

This API is a synchronous API and is called in a sub-thread after all activity data is consumed.

Function Prototype

msptiResult msptiActivityFlushAll(uint32_t flag)

Parameter Description

Table 1 Command-line options

Parameter Name

Input/Output

Description

flag

Input

Sets the flush behavior. This parameter is not supported.

Return Values

MSPTI_SUCCESS indicates that the operation is successful. If MSPTI is not initialized, MSPTI_ERROR_NOT_INITIALIZED is returned, indicating that the operation fails.