Skip to content

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
@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