Function: destroy_context

C Prototype

aclError aclrtDestroyContext(aclrtContext context)

Python Function

ret = acl.rt.destroy_context(context)

Function Usage

Destroys a context and cleans up the associated resources. Only the context created by calling acl.rt.create_context can be destroyed.

Input Description

context: int, pointer address of the context object to be destroyed.

Return Value

ret: int, error code.

Restrictions

None

Reference

For details about the API call sequence and example, see Runtime Resource Allocation and Deallocation and Synchronous Wait.