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 - the OpenCL 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.