跳转至

msptiCallbackFunc

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

Callback function type.

Function Prototype

typedef void (*msptiCallbackFunc)(void *userdata, msptiCallbackDomain domain, msptiCallbackId cbid, const msptiCallbackData *cbdata)

Parameter Description

Table 1 Command-line options

Indicates the additional information triggered by the current callback of the

Parameter Name

Input/Output

Description

userdata

Enter

.

user-side data address.

domain

Input.

Domain to which the current callback belongs.

cbid

Input.

ID of the current callback.

cbdata

Input.

. When domain is MSPTI_CB_DOMAIN_RUNTIME, the cbdata type is msptiCallbackData.

Return Values

None