msptiEnableCallback¶
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 ¶
Enables or disables callbacks for subscribers of specific domain and CallbackId.
When the event is triggered at the location of CallbackId, MSPTI calls the callback function registered through the msptiSubscribe API.
Function Prototype¶
msptiResult msptiEnableCallback(uint32_t enable, msptiSubscriberHandle subscriber, msptiCallbackDomain domain, msptiCallbackId cbid)
Parameter Description¶
Table 1 Command-line options
callback switch. If this parameter is configured, the callback is enabled. If this parameter is not configured, the callback is disabled. |
||
| . | ||
| . | callback ID, which identifies the calling point of the domain. The msptiCallbackIdRuntime and msptiCallbackIdHccl functions can be called. |
Return Values¶
MSPTI_SUCCESS is returned if the operation is successful. MSPTI_ERROR_INVALID_PARAMETER is returned if the user, domain, or *cbid is invalid, indicating that the operation fails.