trunk/b1322a6528cb566a27119128a1a2a30e744884a4: Avoid multiprocess tests hanging forever. (#171972)
<p>When a child process exits before filling the completion queue the parent process will wait forever for it to be filled. As the reason for the termination can be anything check if the process is still alive after a given timeout.</p> <p>If it is not alive and the queue is still empty this indicates such a situation and we handle it like an exception returned by the subprocess.</p> <p>See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3785636718" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/171796" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/171796/hovercard" href="https://github.com/pytorch/pytorch/issues/171796">#171796</a></p> <p>Pull Request resolved: <a class="issue-link j
When a child process exits before filling the completion queue the parent process will wait forever for it to be filled. As the reason for the termination can be anything check if the process is still alive after a given timeout.
If it is not alive and the queue is still empty this indicates such a situation and we handle it like an exception returned by the subprocess.
See #171796
Pull Request resolved: https://github.com/pytorch/pytorch/pull/171972 Approved by: https://github.com/sanketpurandare`
Assets 2
PyTorch Releases
https://github.com/pytorch/pytorch/releases/tag/trunk%2Fb1322a6528cb566a27119128a1a2a30e744884a4Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
githubSetting up a hugo static site hosted with Porkbun
<h2> Content generation </h2> <p>This is a static site generated with <a href="https://gohugo.io/getting-started/quick-start/" rel="noopener noreferrer">hugo</a> with the PaperMod theme. I wanted an easy to use static site generator. I considered <a href="https://jekyllrb.com/" rel="noopener noreferrer">Jekyll</a> and believe it to be a good choice for static sites. There seemed to be slightly more themes I liked with hugo so I went with that. That's a pretty superficial choice but I also don't plan on hacking on the site generation itself so I was agnostic to the Go versus Ruby choice.</p> <h2> Domain hosting </h2> <p>This site uses <a href="https://porkbun.com" rel="noopener noreferrer">porkbun</a> for a domain host. I chose it not least because I do enjoy porkbuns. They also listed stat
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Products
Alibaba Prepares AI Restaurant Tools to Challenge Meituan - TradingView
<a href="https://news.google.com/rss/articles/CBMiuAFBVV95cUxPTDhhQ2prN29tTmJsNlZtbzVNSE1DRmpMdURjY1doWndYY1VUVEIyanhndTlraHpzLUNQSmc4YUlxZnVkNmJfTEdpbXRsN3Z6TjVFcGNFeXlWYUMtUHN5SUhpNkRwQnd4c1lkSjdSZ0VUMzdvZVJLdTc0SUpkZGZnQW1RbHplQVBnQnZmVVFqTS1tUmRFMHpuN3Ntb0FtMDU5QVpCWXdlRDlNNFJ6M2NDQjZqSlNqeFpy?oc=5" target="_blank">Alibaba Prepares AI Restaurant Tools to Challenge Meituan</a> <font color="#6f6f6f">TradingView</font>
Microsoft Aims to Elevate Customer Service With HD Voice Features - CX Today
<a href="https://news.google.com/rss/articles/CBMiqAFBVV95cUxQY19aWFRDMGlyOWlQb1paeVhFYWFhYlpVMC1vcUNGV1FleWtrR043cG5qOVhLdWFnUWl2emZfTWNtQ0NoZTkxTzliSF9nMW8yZFB4LU5KVVZRX2lyakthVXR5X3UyaHN4anA5aXVWMU5DVXpkZ3BVSHRCWWZycDh3QVFPQ2hxS25pM3AzNmd2X2Etd0RnSEJGbTFKaDZ0NlYxYlR6NjdzYVg?oc=5" target="_blank">Microsoft Aims to Elevate Customer Service With HD Voice Features</a> <font color="#6f6f6f">CX Today</font>
Speech-to-Retrieval (S2R): A new approach to voice search - research.google
<a href="https://news.google.com/rss/articles/CBMijAFBVV95cUxQekN0T0VkREpJVGk0U25zMVcyX0VYV0V4eVRJY2ozVW02ampCVXFMRDJybk56blpMdWVhdkRsWWI2S19JemlYM3dHd2dBSkx0SWxtNnNfN18zcjBKLWVXN3JZUnVFdndndTBnSVlVSGhVdWwyS1V3TkRCSUJ5SnRkYXJBV1NfZWUwa3ByWA?oc=5" target="_blank">Speech-to-Retrieval (S2R): A new approach to voice search</a> <font color="#6f6f6f">research.google</font>
Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!