msptiActivityEnable

Supported Products

Note

For details about Ascend product models, see Ascend Product Overview.

Product Type Supported
Atlas 350 accelerator cards
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 products ×

Function

Enables MSPTI to collect activity data of the specified kind.

Collects specific types of activity records. This API can be called multiple times with different msptiActivityKind values, allowing MSPTI to collect different types of activity data.

Prototype

msptiResult msptiActivityEnable(msptiActivityKind kind)

Parameter Description

Table 1 Parameter Description

Parameter

Input/Output

Description

kind

Input

Activity record type, configured as an enumeration value of msptiActivityKind.

Returns

Returns MSPTI_SUCCESS on success, or other values on failure.