Skip to content

[ET-VK] Adding reserve and append functions to SpecVarList #8670

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 2 commits into from
Feb 25, 2025

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: #8633 by @trivedivivek
^ 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/55/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/55/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/54/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/55/orig
@diff-train-skip-merge

Pull Request resolved: #8632

This diff adds a new class called `WorkgroupSize` to the `VecUtils` header file. The `WorkgroupSize` class takes three `uint32_t` values as parameters and stores them in a single `uint32_t` variable using bitwise operations. This class is used in the Vulkan backend to specify the size of a workgroup for a given operation.
ghstack-source-id: 268172661
@exported-using-ghexport

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

This diff adds two new functions to the SpecVarList class in the Vulkan runtime library. The first function, reserve, allows the user to reserve a certain amount of space in the SpecVarList before adding any elements. The second function, append, allows the user to add a single SpecVar to the SpecVarList. These functions are useful for optimizing memory usage and improving performance in the Vulkan runtime.
ghstack-source-id: 268172659
@exported-using-ghexport

Differential Revision: [D70021782](https://our.internmc.facebook.com/intern/diff/D70021782/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner February 25, 2025 05:49
Copy link

pytorch-bot bot commented Feb 25, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 64f426c with merge base 728c255 (image):

NEW FAILURE - The following job has failed:

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 Feb 25, 2025
Base automatically changed from gh/trivedivivek/54/orig to main February 25, 2025 15:21
@trivedivivek trivedivivek merged commit 54910bc into main Feb 25, 2025
47 of 48 checks passed
@trivedivivek trivedivivek deleted the gh/trivedivivek/55/orig branch February 25, 2025 15:55
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. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants