跳转至

msptiEnableDomain

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 all callbacks for subscribers of specific domain.

When the position of the callback ID is triggered, msPTI automatically calls the callback function registered by the msptiSubscribe API.

Function Prototype

msptiResult msptiEnableDomain(uint32_t enable, msptiSubscriberHandle subscriber, msptiCallbackDomain domain)

Parameter Description

Table 1 Command-line options

Parameter Name

Input/Output

Description

enable

input.

callback switch. If this parameter is configured, the callback is enabled. If this parameter is not configured, the callback is disabled.

subscriber

Input.

Subscriber handle.

domain

Input

component. Currently, only Runtime is supported.

Return Values

MSPTI_SUCCESS indicates that the operation is successful. MSPTI_ERROR_INVALID_PARAMETER is returned if the user or domain is invalid, indicating that the operation fails.