pub fn device_synchronize() -> CudaRtResult<()>Expand description
Blocks until all preceding tasks in the current device’s context complete.
Mirrors cudaDeviceSynchronize.
§Errors
Returns CudaRtError::DeviceNotSet if no device is selected, or
a driver error if synchronization fails.