[][src]Function opencl3::device::release_device

pub fn release_device(device: *mut c_void) -> Result<(), i32>

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.