# Code stuck at cuda.synchrize()

**URL:** <https://discuss.pytorch.org/t/code-stuck-at-cuda-synchrize/144162>\
**Category:** distributed\
**Created:** [February 14, 2022, 10:27pm UTC](https://discuss.pytorch.org/t/code-stuck-at-cuda-synchrize/144162 "2022-02-14T22:27:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![agu](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/agu/32/49913_2.png) [@agu](https://discuss.pytorch.org/u/agu)\
**Post date:** [December 13, 2022, 9:44pm UTC](https://discuss.pytorch.org/t/code-stuck-at-cuda-synchrize/144162/4 "2022-12-13T21:44:32Z")

</div>

Maybe setting `TORCH_DISTRIBUTED_DEBUG=DETAIL` can help?  
[https://pytorch.org/docs/master/distributed.html#torch-distributed-debug](https://pytorch.org/docs/master/distributed.html#torch-distributed-debug)

---

_[View the full topic](https://discuss.pytorch.org/t/code-stuck-at-cuda-synchrize/144162)._
