func (c *Context) release() error { if c.id != nil { if err := C.clReleaseContext(c.id); err != C.CL_SUCCESS { return Cl_error(err) } c.id = nil } return nil }
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clReleaseContext.html func ReleaseContext(context Context) ErrorCode { return ErrorCode(C.clReleaseContext(context.clContext)) }
func releaseContext(c *Context) { if c.clContext != nil { C.clReleaseContext(c.clContext) c.clContext = nil } }
func CLReleaseContext(context CL_context) CL_int { return CL_int(C.clReleaseContext(context.cl_context)) }