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

clReleaseMemObject - Decrements the memory object reference count.

Authors

TheKhronosGroup

Errors

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

       •   CL_INVALID_MEM_OBJECT if memobj is a not a valid memory 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

       clReleaseMemObject - Decrements the memory object reference count.

       cl_intclReleaseMemObject(cl_memmemobj);

Notes

        1. OpenCL Specification
           page 118, section 5.4.1 - Retaining and Releasing Memory Objects

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

See Also

clCreateBuffer(3clc), clEnqueueCopyBuffer(3clc), clEnqueueReadBuffer(3clc), clEnqueueWriteBuffer(3clc),
       clRetainMemObject(3clc)

Specification

OpenCLSpecification[1]

See Also