Function: destroy_context
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Destroys a context and cleans up the associated resources. Only the context created by calling acl.rt.create_context can be destroyed.
Prototype
- C Prototype
1aclError aclrtDestroyContext(aclrtContext context)
- Python Function
1ret = acl.rt.destroy_context(context)
Parameter Description
|
Parameter |
Description |
|---|---|
|
context |
Int, pointer address of the context object to be destroyed. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: Context Management