Skip to content

[ET-VK] Fake u16vecn for devserver #6675

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 3 commits into from
Nov 7, 2024

Conversation

SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Nov 5, 2024

Stack from ghstack (oldest at bottom):

Context

Copy-pasted from the newly added maybe_fake_u16vec3 function in the codegen script:

There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.

Differential Revision: D65501674

## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Nov 5, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 481b41e with merge base 03b1ef2 (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 Nov 5, 2024
SS-JIA added a commit that referenced this pull request Nov 5, 2024
## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.

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

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

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

## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.

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

[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request Nov 5, 2024
Pull Request resolved: #6675

## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.


ghstack-source-id: 251990621
@exported-using-ghexport

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

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

## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.

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

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

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

SS-JIA added a commit that referenced this pull request Nov 7, 2024
Pull Request resolved: #6675

## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.


ghstack-source-id: 252234981
@exported-using-ghexport

Differential Revision: [D65501674](https://our.internmc.facebook.com/intern/diff/D65501674/)
@facebook-github-bot facebook-github-bot merged commit 26b30b9 into gh/SS-JIA/138/base Nov 7, 2024
41 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/138/head branch November 7, 2024 02:40
SS-JIA added a commit that referenced this pull request Nov 7, 2024
Pull Request resolved: #6675

## Context

Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:

> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.


ghstack-source-id: 252234981
@exported-using-ghexport

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

Co-authored-by: Stephen Jia <[email protected]>
SS-JIA added a commit that referenced this pull request Nov 12, 2024
As title. This is a follow up from #6675. Replace `uint16_t` with `int` as well as 16 bit vectorized types.

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

[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request Nov 12, 2024
As title. This is a follow up from #6675. Replace `uint16_t` with `int` as well as 16 bit vectorized types.

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

ghstack-source-id: 253112193
Pull Request resolved: #6781
SS-JIA added a commit that referenced this pull request Nov 12, 2024
As title. This is a follow up from #6675. Replace `uint16_t` with `int` as well as 16 bit vectorized types.

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

ghstack-source-id: 253112193
Pull Request resolved: #6781

Co-authored-by: Stephen Jia <[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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants