aclrtSnapShotCallbackUnregister

Note: This API is for trial use and may be changed in later versions. It is not available in production environments.

Applicable Products

Product

Supported

Ascend 950PR

√

Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

X

Atlas inference products

X

Atlas training products

X

Function

Deregisters a callback function. Upon deregistration, the callback function will no longer be called at the specified snapshot phase.

Prototype

1
aclError aclrtSnapShotCallbackUnregister(aclrtSnapShotStage stage, aclrtSnapShotCallBack callback)

Parameters

Parameter

Input/Output

Description

stage

Input

Snapshot phase for triggering the callback. For details about the type definition, see aclrtSnapShotStage.

callback

Input

Pointer to the callback function to be deregistered.

Function definition:

typedef uint32_t (*aclrtSnapShotCallBack)(int32_t deviceId, void* args);

Returns

0 on success; otherwise, failure. For details, see aclError.