clRetainKernel

Errors

clRetainKernel returns CL_SUCCESS if the function is
executed successfully. It returns CL_INVALID_KERNEL if kernel is not a valid kernel object.
clCreateKernel or clCreateKernelsInProgram do an implicit retain.