Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add subgroup matrix multiplication#80

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
junjihashimoto wants to merge2 commits intoAnswerDotAI:dev
base:dev
Choose a base branch
Loading
fromjunjihashimoto:feature/matmul

Conversation

@junjihashimoto
Copy link
Collaborator

@junjihashimotojunjihashimoto commentedSep 5, 2025
edited
Loading

Add the shader of subgroup matrix multiplication.

$ sysctl -n machdep.cpu.brand_stringApple M4 Max$ for i in 11 12 13 ; do MATMUL_VERSION=$i ./build/matmul  | grep 'Dispatching\|FLOPS' ; done# Without subgroupMatrix (f16) [info] Dispatching Kernel version 11: f16: 2D blocktiling with loop unrolling, vectorization and transpose, 30 iterations ...25.8 milliseconds / dispatch ~ 10640.35 GFLOPS# With subgroupMatrix (f16) [info] Dispatching Kernel version 12: f16: Subgroup matrix multiply with transpose, 30 iterations ...20.7 milliseconds / dispatch ~ 13299.45 GFLOPS# With subgroupMatrix (f32) [info] Dispatching Kernel version 13: f32: Subgroup matrix multiply with transpose (default), 30 iterations ...24.6 milliseconds / dispatch ~ 11185.63 GFLOPS

austinvhuang reacted with thumbs up emoji
@junjihashimoto
Copy link
CollaboratorAuthor

junjihashimoto commentedSep 5, 2025
edited
Loading

The main branch does not seem to output any shader compilation errors.

# Ensure source present on required commit (idempotent remote setup)
if(NOTDEFINED DAWN_COMMITOR DAWN_COMMITSTREQUAL"")
set(DAWN_COMMIT"e1d6e12337080cf9f6d8726209e86df449bc6e9a"CACHESTRING"Dawn commit to checkout" FORCE)
set(DAWN_COMMIT"3f79f3aefe0b0a498002564fcfb13eb21ab6c047"CACHESTRING"Dawn commit to checkout" FORCE)
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

google/dawn@d7d27a6
Required to set subgroupsize to 32 on MacOS.

@junjihashimotojunjihashimoto marked this pull request as ready for reviewOctober 13, 2025 06:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@junjihashimoto

[8]ページ先頭

©2009-2025 Movatter.jp