warp.synchronize_device#
- warp.synchronize_device(device=None)[source]#
Synchronize the calling CPU thread with any outstanding CUDA work on the specified device
This function allows the host application code to ensure that all kernel launches and memory copies have completed on the device.
- Parameters:
- Raises:
RuntimeError – If graph capture is active on the device, or if CUDA reports an error from outstanding work.