跳转至

KernelMonitor.start

Product Support

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 ×

Function Usage

Marks the start of the kernel profiling.

Function Prototype

def start(self, cb: Callable[[KernelData], None]) -> MsptiResult:

Parameter Description

Parameter Name

Input/Output

Description

cb: callable

Enter

.

is used to transfer the collected kernel data. Call the KernelData structure.

Return Values

If MsptiResult.MSPTI_SUCCESS is returned, the operation is successful. If MsptiResult.MSPTI_ERROR_INVALID_PARAMETER is returned, the callback function type is incorrect and the operation fails.