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

clReleaseDevice - Decrements the device reference count.

Authors

TheKhronosGroup

Errors

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

       •   CL_INVALID_DEVICE if device is not a valid sub-device created by a call to clCreateSubDevices(3clc).

       •   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

       clReleaseDevice - Decrements the device reference count.

       cl_intclReleaseDevice(cl_device_iddevice);

Notes

        1. OpenCL Specification
           page 52, section 4.3 - Partitioning a Device

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

See Also

clCreateSubDevices(3clc), clGetDeviceIDs(3clc), clRetainDevice(3clc)

Specification

OpenCLSpecification[1]

See Also