release_device

Function release_device 

Source
pub unsafe fn release_device(device: cl_device_id) -> Result<(), cl_int>
Expand description

Release an OpenCL device. Calls clReleaseDevice to decrement the device reference count if device is a valid sub-device created by a call to clCreateSubDevices.

  • device - the cl_device_id of the OpenCL device.

returns an empty Result or the error code from the OpenCL C API function.

ยงSafety

This function is unsafe because it changes the OpenCL object reference count.