Example #1
0
File: package.go Project: mantyr/cl
// see https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clRetainKernel.html
func RetainKernel(ker Kernel) ErrorCode {
	return ErrorCode(C.clRetainKernel(ker))
}
Example #2
0
func CLRetainKernel(kernel CL_kernel) CL_int {
	return CL_int(C.clRetainKernel(kernel.cl_kernel))
}
Example #3
0
func retainKernel(k *Kernel) {
	if k.clKernel != nil {
		C.clRetainKernel(k.clKernel)
	}
}