New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RPC] Support timeout in rref._get_type() #50498
Conversation
This change is mostly needed for the next diff in this stack, where rref._get_type() is called in the rpc_async/rpc_sync RRef proxy function and can block indefinitely if there is no timeout. It will also be useful to have a timeout argument when we publicize this API to keep it consistent with other RPC APIs. Differential Revision: [D25897588](https://our.internmc.facebook.com/intern/diff/D25897588/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D25897588/)! [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 38fc8d5 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Codecov Report
@@ Coverage Diff @@
## gh/rohan-varma/215/base #50498 +/- ##
===========================================================
+ Coverage 80.67% 80.73% +0.05%
===========================================================
Files 1910 1910
Lines 207842 207195 -647
===========================================================
- Hits 167684 167273 -411
+ Misses 40158 39922 -236 |
torch/csrc/distributed/rpc/init.cpp
Outdated
timeout (float, optional): Timeout for ``_get_type``. If | ||
the call does not complete within this timeframe, an | ||
exception indicating so will be raised. If this | ||
argument is not provided, the default RPC timeout will | ||
be used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc should mention the unit for the timeout (seconds/milliseconds etc.)
This change is mostly needed for the next diff in this stack, where rref._get_type() is called in the rpc_async/rpc_sync RRef proxy function and can block indefinitely if there is no timeout. It will also be useful to have a timeout argument when we publicize this API to keep it consistent with other RPC APIs. Differential Revision: [D25897588](https://our.internmc.facebook.com/intern/diff/D25897588/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D25897588/)! [ghstack-poisoned]
This change is mostly needed for the next diff in this stack, where rref._get_type() is called in the rpc_async/rpc_sync RRef proxy function and can block indefinitely if there is no timeout. It will also be useful to have a timeout argument when we publicize this API to keep it consistent with other RPC APIs. Differential Revision: [D25897588](https://our.internmc.facebook.com/intern/diff/D25897588/) **NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D25897588/)! [ghstack-poisoned]
This pull request has been merged in ab1ba8f. |
Stack from ghstack:
This change is mostly needed for the next diff in this stack, where
rref._get_type() is called in the rpc_async/rpc_sync RRef proxy function and
can block indefinitely if there is no timeout. It will also be useful to have a
timeout argument when we publicize this API to keep it consistent with other
RPC APIs.
Differential Revision: D25897588
NOTE FOR REVIEWERS: This PR has internal Facebook specific changes or comments, please review them on Phabricator!