Пример #1
0
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
}
Пример #2
0
// 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))
}
Пример #3
0
func releaseContext(c *Context) {
	if c.clContext != nil {
		C.clReleaseContext(c.clContext)
		c.clContext = nil
	}
}
Пример #4
0
func CLReleaseContext(context CL_context) CL_int {
	return CL_int(C.clReleaseContext(context.cl_context))
}