aclrtDestroyContext

Description

Destroys a context and cleans up the associated resources. This API is synchronous. 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.

See Also

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