-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[Vulkan] Add Vulkan Rewrite to Transfer Inputs and Outputs to Vulkan and CPU Backends Respectively #87432
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
…and CPU Backends Respectively With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/87432
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 Failures, 2 PendingAs of commit cc16ec3: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…and CPU Backends Respectively With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! ghstack-source-id: 171128918 Pull Request resolved: #87432
digantdesai
left a comment
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
| "unify_type_list", | ||
| "vitals_enabled", | ||
|
|
||
| "VULKAN_AUTOMATIC_GPU_TRANSFER", |
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.
Do you actually want this to be public API as torch.VULKAN_AUTOMATIC_GPU_TRANSFER ?
Is it properly documented as well?
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171174616 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171282664 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171357604 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171521248 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171715102 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171919059 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 @bypass-github-export-checks With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 171972016 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
… to Vulkan and CPU Backends Respectively" With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! [ghstack-poisoned]
…and CPU Backends Respectively Pull Request resolved: #87432 @bypass-github-export-checks With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - 32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 ghstack-source-id: 172070804 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)!
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
Hey @salilsdesai. |
…and CPU Backends Respectively (pytorch#87432) With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - pytorch@32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! Pull Request resolved: pytorch#87432 Approved by: https://github.com/mcr229, https://github.com/digantdesai
…and CPU Backends Respectively (pytorch#87432) With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models. Graph rewrite code based off of: - pytorch@32efff4#diff-a473bddb458dc24225866a45092d6eca064eddd256245d93020e48e216eee4d5R160-R179 Differential Revision: [D39519168](https://our.internmc.facebook.com/intern/diff/D39519168/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D39519168/)! Pull Request resolved: pytorch#87432 Approved by: https://github.com/mcr229, https://github.com/digantdesai
|
For sample model Before Transfer After Transfer After final dead code elimination |
Stack from ghstack (oldest at bottom):
With this change, we don't have to manually invoke transferring input and output backends when we run vulkan models.
Graph rewrite code based off of:
Differential Revision: D39519168
NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!