Function cl3::kernel::retain_kernel
source · pub unsafe fn retain_kernel(kernel: cl_kernel) -> Result<(), cl_int>
Expand description
Retain an OpenCL
kernel.
Calls clRetainKernel to increment the kernel reference count.
program
- theOpenCL
kernel.
returns an empty Result or the error code from the OpenCL
C API function.
§Safety
This function is unsafe because it changes the OpenCL
object reference count.