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

[WebGPU] Translate int8x4 into u32 #17071

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

Jiawei-Shao
Copy link
Contributor

This patch translates an int8x4 into a u32 in WGSL shaders as 8-bit integers are not supported in WebGPU right now and the WGSL built-in function dot4I8Packed() accepts u32 as its inputs and each of the u32 value logically represents a 4-element 8-bit integer vector.

issue: #16627

This patch translates an `int8x4` into a `u32` in WGSL shaders as
8-bit integers are not supported in WebGPU right now and the WGSL
built-in function `dot4I8Packed()` accepts `u32` as its inputs and
each of the `u32` value logically represents a 4-element 8-bit
integer vector.

issue: apache#16627
@Jiawei-Shao
Copy link
Contributor Author

Hi @tqchen I'd like to submit this part first then work on adding DP4A in TIR.
PTAL, thanks!

@tqchen tqchen merged commit 2f800df into apache:main Jun 7, 2024
14 checks passed
@tqchen
Copy link
Member

tqchen commented Jun 7, 2024

thank you @Jiawei-Shao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants