Skip to content

[ET-VK] Using TmpTensor for width packed versions of q_linear op shader to reduce memory usage. #7929

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 8 commits into from
Jan 28, 2025

Conversation

trivedivivek
Copy link
Contributor

@trivedivivek trivedivivek commented Jan 24, 2025

Stack from ghstack (oldest at bottom):

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

Differential Revision: D68561647

…er to reduce memory usage.

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jan 24, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 61cf64e with merge base bdd3d9c (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: D68561647

trivedivivek added a commit that referenced this pull request Jan 24, 2025
…er to reduce memory usage.

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

ghstack-source-id: 262822997
Pull Request resolved: #7929
…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

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

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

trivedivivek added a commit that referenced this pull request Jan 24, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 262858894
@exported-using-ghexport

Differential Revision: [D68561647](https://our.internmc.facebook.com/intern/diff/D68561647/)
…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

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

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

trivedivivek added a commit that referenced this pull request Jan 24, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 262972267
@exported-using-ghexport

Differential Revision: [D68561647](https://our.internmc.facebook.com/intern/diff/D68561647/)
…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

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

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

trivedivivek added a commit that referenced this pull request Jan 27, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263214012
@exported-using-ghexport

Differential Revision: [D68561647](https://our.internmc.facebook.com/intern/diff/D68561647/)
…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

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

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

trivedivivek added a commit that referenced this pull request Jan 27, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263238737
@exported-using-ghexport

Differential Revision: [D68561647](https://our.internmc.facebook.com/intern/diff/D68561647/)
…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

[ghstack-poisoned]
trivedivivek added a commit that referenced this pull request Jan 28, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263366400
@exported-using-ghexport

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

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

…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

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

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

trivedivivek added a commit that referenced this pull request Jan 28, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263440664
@exported-using-ghexport

Differential Revision: [D68561647](https://our.internmc.facebook.com/intern/diff/D68561647/)
…ear op shader to reduce memory usage."

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.

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

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

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

trivedivivek added a commit that referenced this pull request Jan 28, 2025
…er to reduce memory usage.

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263456691
@exported-using-ghexport

Differential Revision: [D68561647](https://our.internmc.facebook.com/intern/diff/D68561647/)
@facebook-github-bot facebook-github-bot merged commit a88e880 into gh/trivedivivek/53/base Jan 28, 2025
47 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/trivedivivek/53/head branch January 28, 2025 19:37
manuelcandales pushed a commit that referenced this pull request Jan 28, 2025
…er to reduce memory usage. (#8009)

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263456691
@exported-using-ghexport

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

Co-authored-by: Vivek Trivedi <[email protected]>
trivedivivek added a commit that referenced this pull request Jan 29, 2025
* [ET-VK] Using shared memory to save position in conv2d dw output op.

Pull Request resolved: #7923

This diff introduces a change to conv2d dw op to save output positions in shared memory, which reduces register usage and improves performance.
ghstack-source-id: 263440666
@exported-using-ghexport

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

* [ET-VK] Using push constants for conv2d dw.

Pull Request resolved: #7928

This diff is related to the use of push constants for convolutional dw (depthwise) in Executorch's Vulkan backend. This optimization improves memory usage.
ghstack-source-id: 263440665
@exported-using-ghexport

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

* [ET-VK] Using TmpTensor for width packed versions of q_linear op shader to reduce memory usage. (#8009)

Pull Request resolved: #7929

This diff introduces the use of temporary tensors to reduce memory usage in the width packed versions of the q_linear op shader.
ghstack-source-id: 263456691
@exported-using-ghexport

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

Co-authored-by: Vivek Trivedi <[email protected]>

---------

Co-authored-by: Vivek Trivedi <[email protected]>
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