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

clRetainProgram - Increments the program reference count.

Authors

TheKhronosGroup

Errors

       Returns CL_SUCCESS if the function is executed successfully. Otherwise, it returns one of the following
       errors:

       •   CL_INVALID_PROGRAM if program is not a valid program 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

       clRetainProgram - Increments the program reference count.

       cl_intclRetainProgram(cl_programprogram);

Notes

        1. OpenCL Specification
           page 136, section 5.6.1 - Creating Program Objects

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

See Also

clCreateProgramWithBinary(3clc), clCreateProgramWithSource(3clc), clRetainProgram(3clc)

Specification

OpenCLSpecification[1]

See Also