# tensorplay.cuda.synchronize Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.synchronize.html ```python tensorplay.cuda.synchronize(device: Any = None) → None ``` Wait for all kernels in all streams on a CUDA device to complete. Parameters: device ([tensorplay.Device](/docs/generated/tensorplay.Device.html#tensorplay.Device) or [int](https://docs.python.org/3/builtins/functions.html#int), optional) – device for which to synchronize. It uses the current device, given by [current_device()](/docs/generated/tensorplay.cuda.current_device.html#tensorplay.cuda.current_device), if [device](/docs/generated/tensorplay.cuda.device.html#tensorplay.cuda.device) is None (default).