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] Use 64 as the workgroup size of DP4AMatMulQuantize #24129

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

qjia7
Copy link
Contributor

@qjia7 qjia7 commented Mar 21, 2025

Usually, workgroup size 1 is not a good option for compute shader. It means that only one thread is active in one workgroup. This PR uses 64 as the workgroup size of DP4AMatMulQuantize. Notice that half of time of DP4AMatMulQuantize is reduced in phi4 on NV RTX 2000 Ada.

Ususally, workgroup size 1 is not a good option for compute shader.
It means that only one thread is active in one workgroup. This PR
uses 64 as the workgroup size of DP4AMatMulQuantize. Notice that half of time of
DP4AMatMulQuantize is reduced in phi4 on NV RTX 2000 Ada.
@qjia7 qjia7 requested review from sushraja-msft and guschmue March 21, 2025 10:12
@guschmue guschmue added the ep:WebGPU ort-web webgpu provider label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:WebGPU ort-web webgpu provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants