logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

clReleaseKernel - Decrements the kernel reference count.

Authors

TheKhronosGroup

Errors

       Returns CL_SUCCESS if the kernel objects are successfully alloctaed. Otherwise, it returns one of the
       following errors:

       •   CL_INVALID_KERNEL if kernel is not a valid kernel object.

       •   CL_OUT_OF_RESOURCES if there is a failure to allocate resources required by the OpenCL implementation
           on the device.

       •   CL_OUT_OF_HOST_MEMORY if there is a failure to allocate resources required by the OpenCL
           implementation on the host.

Name

       clReleaseKernel - Decrements the kernel reference count.

       cl_intclReleaseKernel(cl_kernelkernel);

Notes

        1. OpenCL Specification
           page 159, section 5.7.1 - Creating Kernel Objects

The Khronos Group                                  11/18/2024                              CLRELEASEKERNEL(3clc)

See Also

clCreateKernel(3clc), clCreateKernelsInProgram(3clc), clRetainKernel(3clc), clSetKernelArg(3clc),
       clGetKernelInfo(3clc), clGetKernelWorkGroupInfo(3clc)

Specification

OpenCLSpecification[1]

See Also