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][Op Redesign][7/n] Generalize ExecuteNode args with ArgGroup #2262

Closed
wants to merge 1 commit into from

Conversation

jorgep31415
Copy link
Contributor

@jorgep31415 jorgep31415 commented Mar 5, 2024

Stack from ghstack (oldest at bottom):

Leftover from Op Redesign 5/n - D54445787.


Typically, we specify outputs first and inputs second in the shader layout, but not always. In image_to_nchw.glsl, this is flipped:
https://www.internalfb.com/code/fbsource/[d303d229f22616bfba32e5bb5d4d27dc656f41a7]/fbcode/caffe2/aten/src/ATen/native/vulkan/glsl/image_to_nchw.glsl?lines=8-19

Hence, we generalize our ExecuteNode specification to take a vector of args (image, buffer, etc.), with specification of access type. Since typically we will group args of the same access together, we correspond one access specification to multiple args.

We reuse api::MemoryAccessType for access specification.

Differential Revision: D54518840

Leftover from Op Redesign 5/n - D54445787.

---

Typically, we specify outputs first and inputs second in the shader layout, but not always. In `image_to_nchw.glsl`, this is flipped:
https://www.internalfb.com/code/fbsource/[d303d229f22616bfba32e5bb5d4d27dc656f41a7]/fbcode/caffe2/aten/src/ATen/native/vulkan/glsl/image_to_nchw.glsl?lines=8-19

Hence, we generalize our `ExecuteNode` specification to take a vector of args (image, buffer, etc.), with specification of access type. Since typically we will group args of the same access together, we correspond one access specification to multiple args.

We reuse `api::MemoryAccessType` for access specification.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Mar 5, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 413c954 with merge base 566209d (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 Mar 5, 2024
@facebook-github-bot
Copy link
Contributor

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

jorgep31415 added a commit that referenced this pull request Mar 5, 2024
Leftover from Op Redesign 5/n - D54445787.

---

Typically, we specify outputs first and inputs second in the shader layout, but not always. In `image_to_nchw.glsl`, this is flipped:
https://www.internalfb.com/code/fbsource/[d303d229f22616bfba32e5bb5d4d27dc656f41a7]/fbcode/caffe2/aten/src/ATen/native/vulkan/glsl/image_to_nchw.glsl?lines=8-19

Hence, we generalize our `ExecuteNode` specification to take a vector of args (image, buffer, etc.), with specification of access type. Since typically we will group args of the same access together, we correspond one access specification to multiple args.

We reuse `api::MemoryAccessType` for access specification.

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

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

This pull request has been merged in 49fb74b.

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. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants