Destroys a context and cleans up the associated resources. This API is synchronous. Only the context created by the aclrtCreateContext call can be destroyed.
aclError aclrtDestroyContext(aclrtContext context)
Parameter |
Input/Output |
Description |
|---|---|---|
context |
Input |
Context to destroy. |
0 on success; else, failure.
For details about the API call sequence and example, see Runtime Resource Allocation and Deallocation.