Skip to content

[ET-VK] Replace Uniform buffers with push constants for view op #7319

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

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #7229
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/24/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/24/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/23/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/24/orig
@diff-train-skip-merge

…ta in DispatchNode.

Pull Request resolved: #7223

This diff adds a new class called `PushConstantDataInfo` to the `DispatchNode` class in the Vulkan backend for Executorch.
This class represents a push constant data entry, which can either be a shared pointer to a tensor's uniform data with an attribute or data with a maximum size of 16 bytes.
The `write` method is also added to this class, which writes the data to a destination buffer.
ghstack-source-id: 257899587
@exported-using-ghexport

Differential Revision: [D66796049](https://our.internmc.facebook.com/intern/diff/D66796049/)
…tantDataInfo for various attributes of a tensor.

Pull Request resolved: #7224

This diff adds convenience functions in the Compute graph to get PushConstantDataInfo for various attributes of a tensor.
ghstack-source-id: 257899588
@exported-using-ghexport

Differential Revision: [D66853502](https://our.internmc.facebook.com/intern/diff/D66853502/)
Pull Request resolved: #7229

This diff replaces uniform buffers with push constants for view op in the Vulkan backend of Executorch. The changes include updating the GLSL code to use push constants instead of uniform buffers and updating the C++ code to pass the sizes as push constants to the shader.
ghstack-source-id: 257899594
@exported-using-ghexport

Differential Revision: [D66733658](https://our.internmc.facebook.com/intern/diff/D66733658/)
Copy link

pytorch-bot bot commented Dec 13, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7319

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit b005b8c with merge base de74961 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 13, 2024
Base automatically changed from gh/trivedivivek/23/orig to main December 16, 2024 22:22
@kirklandsign kirklandsign added the release notes: backends [DO NOT USE] Changes to any of the backend delegates label Dec 16, 2024
@kirklandsign kirklandsign merged commit 46acc71 into main Dec 16, 2024
44 checks passed
@kirklandsign kirklandsign deleted the gh/trivedivivek/24/orig branch December 16, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: backends [DO NOT USE] Changes to any of the backend delegates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants