aclrtDestroyContext

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

Destroys a context and cleans up the associated resources. Only the context created by the aclrtCreateContext call can be destroyed.

Prototype

aclError aclrtDestroyContext(aclrtContext context)

Parameters

Parameter

Input/Output

Description

context

Input

Context to destroy.

Returns

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