函数:destroy_context
| C函数原型 | aclError aclrtDestroyContext(aclrtContext context) | 
|---|---|
| Python函数 | ret = acl.rt.destroy_context(context) | 
| 函数功能 | 销毁一个Context,释放Context的资源,同步接口。只能销毁通过acl.rt.create_context接口创建的Context。 | 
| 输入说明 | context:int,指定需要销毁的Context对象指针地址。 | 
| 返回值说明 | ret:int,错误码。 
 | 
| 约束说明 | 无 | 
| 参考资源 | 接口调用流程与示例,请参见运行管理资源申请与释放、同步等待。 | 
父主题: Context管理