跳转至

msptiActivityDisable

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

Stops profiling activity records of a specified type. This API can be called multiple times with msptiActivityKind set to different values.

Function Prototype

msptiResult msptiActivityDisable(msptiActivityKind kind)

Parameter Description

Table 1 Command-line options

Parameter Name

Input/Output

Description

kind

Input

Type of the activity record to be stopped. Set this parameter to the enumerated value of msptiActivityKind.

Return Values

MSPTI_SUCCESS indicates that the operation is successful. Other values indicate that the operation fails.