[−][src]Function opencl3::device::retain_device
pub fn retain_device(device: *mut c_void) -> Result<(), i32>
Retain an OpenCL device.
Calls clRetainDevice to increment 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.