Skip to content
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

[ET-VK] Minor improvement to q_linear op shader. #7643

Closed

Conversation

trivedivivek
Copy link
Contributor

@trivedivivek trivedivivek commented Jan 14, 2025

Stack from ghstack (oldest at bottom):

Context

The stack of diffs aims to optimize the performance of the Executorch Vulkan backend by making changes to the q_linear, q_8w_linear, and conv2d_pw ops. The changes include reducing the precision of int storage, reducing register usage, improving texture coordinate storage, and reducing shader register pressure. The overall purpose of the diffs is to improve the performance of Executorch on Vulkan-based devices.

This Diff

This diff contains a minor improvement to the q_linear op shader in the Vulkan backend for Executorch. The code changes in the q_8w_linear.glsl file include a change in the input parameter from a 3-element u16vec3 to a 2-element u16vec2, and a change in the loop variable from i to x. The changes were made to improve the performance of the shader.

Differential Revision: D68113154

## Context

The stack of diffs aims to optimize the performance of the Executorch Vulkan backend by making changes to the q_linear, q_8w_linear, and conv2d_pw ops. The changes include reducing the precision of int storage, reducing register usage, improving texture coordinate storage, and reducing shader register pressure. The overall purpose of the diffs is to improve the performance of Executorch on Vulkan-based devices.




## This Diff

This diff contains a minor improvement to the q_linear op shader in the Vulkan backend for Executorch. The code changes in the q_8w_linear.glsl file include a change in the input parameter from a 3-element u16vec3 to a 2-element u16vec2, and a change in the loop variable from i to x. The changes were made to improve the performance of the shader.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jan 14, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4cb5e1d with merge base c9db811 (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 Jan 14, 2025
trivedivivek added a commit that referenced this pull request Jan 14, 2025
## Context

The stack of diffs aims to optimize the performance of the Executorch Vulkan backend by making changes to the q_linear, q_8w_linear, and conv2d_pw ops. The changes include reducing the precision of int storage, reducing register usage, improving texture coordinate storage, and reducing shader register pressure. The overall purpose of the diffs is to improve the performance of Executorch on Vulkan-based devices.




## This Diff

This diff contains a minor improvement to the q_linear op shader in the Vulkan backend for Executorch. The code changes in the q_8w_linear.glsl file include a change in the input parameter from a 3-element u16vec3 to a 2-element u16vec2, and a change in the loop variable from i to x. The changes were made to improve the performance of the shader.

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

ghstack-source-id: 261204381
Pull Request resolved: #7643
@facebook-github-bot
Copy link
Contributor

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

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 topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants