-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Unify async execution for JIT functions #57852
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
Conversation
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit e891e5b (more details on the Dr. CI page):
🕵️ 2 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
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.
LGTM!
| } catch (std::exception& e) { | ||
| ownerRRef->setError(std::current_exception()); | ||
| postProcessing(); | ||
| auto asyncPostProcessing = [ownerRRef, postProcessing](JitFuture& jitFuture) { |
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.
this is nice!
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/) [ghstack-poisoned]
Pull Request resolved: pytorch#57852 Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the `thenAsync` method), adding support for async execution becomes trivial, and the code much simpler than what it used to be. ghstack-source-id: 129567063 Differential Revision: [D28253842](https://our.internmc.facebook.com/intern/diff/D28253842/)
|
This pull request has been merged in ea2f5bb. |
Stack from ghstack:
Another great example of the benefits of Futures. Thanks to the "right abstraction" (i.e., the
thenAsyncmethod), adding support for async execution becomes trivial, and the code much simpler than what it used to be.Differential Revision: D28253842