Skip to content

[ET-VK] Replace Uniform buffers with push constants for copy op #7267

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 14 commits into from
Dec 20, 2024

Conversation

trivedivivek
Copy link
Contributor

@trivedivivek trivedivivek commented Dec 10, 2024

Stack from ghstack (oldest at bottom):

This diff replaces uniform buffers with push constants for copy 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.

Differential Revision: D66890851

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Dec 10, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit f2074ca with merge base 5190106 (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
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 10, 2024
This diff replaces uniform buffers with push constants for copy 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.

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

ghstack-source-id: 257458573
Pull Request resolved: #7267
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 10, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 257460502
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 11, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 257598481
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 12, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 257845969
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
@trivedivivek trivedivivek added the release notes: backends [DO NOT USE] Changes to any of the backend delegates label Dec 12, 2024
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 12, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 257899595
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
trivedivivek added a commit that referenced this pull request Dec 16, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 258388833
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 17, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 258537679
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 17, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 258553966
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 17, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 258575399
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
trivedivivek added a commit that referenced this pull request Dec 17, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 258577465
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

trivedivivek added a commit that referenced this pull request Dec 18, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 258737411
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
…py op"

This diff replaces uniform buffers with push constants for copy 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.

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

[ghstack-poisoned]
trivedivivek added a commit that referenced this pull request Dec 20, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 259127151
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66890851

@facebook-github-bot facebook-github-bot merged commit 819cc03 into gh/trivedivivek/27/base Dec 20, 2024
46 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/trivedivivek/27/head branch December 20, 2024 18:37
kirklandsign pushed a commit that referenced this pull request Dec 20, 2024
Pull Request resolved: #7267

This diff replaces uniform buffers with push constants for copy 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: 259127151
@exported-using-ghexport

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

Co-authored-by: Vivek Trivedi <[email protected]>
kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#7267

This diff replaces uniform buffers with push constants for copy 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: 258521068
@exported-using-ghexport

Differential Revision: [D66890851](https://our.internmc.facebook.com/intern/diff/D66890851/)
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. fb-exported 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.

3 participants