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

clRetainContext - Increment the context reference count.

Authors

TheKhronosGroup

Errors

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

       •   CL_INVALID_CONTEXT if context is not a valid OpenCL context.

       •   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

       clRetainContext - Increment the context reference count.

       cl_intclRetainContext(cl_contextcontext);

Notes

        1. OpenCL Specification
           page 57, section 4.4 - Contexts

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

Parameters

context
           The context to retain.

See Also

clCreateContext(3clc), clCreateContextFromType(3clc), clGetContextInfo(3clc), clReleaseContext(3clc),
       clGetContextInfo(3clc)

Specification

OpenCLSpecification[1]

See Also