aclFinalize

Applicability

Product

Supported

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 products

Description

Performs deinitialization to destroy the resources used by the acl API in the process.

In the scenario where device service logs are sent back to the host, this API adds 2,000-ms timeout (the maximum timeout) can reach 2,000 ms) by default to ensure that logs of the ERROR and EVENT levels are completely sent back. You can set the ASCEND_LOG_DEVICE_FLUSH_TIMEOUT environment variable to 0 (command example: export ASCEND_LOG_DEVICE_FLUSH_TIMEOUT=0) to cancel the default delay. For details about the ASCEND_LOG_DEVICE_FLUSH_TIMEOUT environment variable, see Environment Variables in "Logs" > "ASCEND_LOG_DEVICE_FLUSH_TIMEOUT".

Prototype

aclError aclFinalize()

Parameters

None

Returns

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

Restrictions

Before the app process exits, ensure that aclFinalize or aclFinalizeReference has been called to complete deinitialization. Otherwise, there may be exceptions. For example, an error is reported when the app process exits.

You are not advised to call aclFinalize or aclFinalizeReference in the destructor call. Otherwise, the process may exit abnormally due to the unknown singleton destruction sequence.

See Also

For the API call example, see Initialization and Deinitialization.