warp.synchronize#
- warp.synchronize()[source]#
Manually synchronize the calling CPU thread with any outstanding CUDA work on all devices
This method allows the host application code to ensure that any kernel launches or memory copies have completed.
- Raises:
RuntimeError – If graph capture is active on a device, or if CUDA reports an error from outstanding work. Warp synchronizes the remaining devices before raising the first error.