aclFinalizeCallbackRegister

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Registers the deinitialization callback function.

This API must be called before aclFinalize to trigger the callback function during deinitialization.

Prototype

1
aclError aclFinalizeCallbackRegister(aclRegisterCallbackType type, aclFinalizeCallbackFunc cbFunc, void *userData)

Parameters

Parameter

Input/Output

Description

type

Input

Registration type, which is distinguished by function. For details, see aclRegisterCallbackType.

cbFunc

Input

Deinitialization callback function.

Callback function definition:

typedef aclError (*aclFinalizeCallbackFunc)(void *userData);

userData

Input

Pointer to the user data to be passed to the callback function.

Returns

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