pub fn device_synchronize() -> Result<()>
Block the calling host thread until all work on the current device has completed. Equivalent to cudaDeviceSynchronize.
cudaDeviceSynchronize