Skip to content

HIP/CUDA: Fix reduction in mmf getting tile widths not devisiable by 64 in mul_mat_id on wave64 devices - #30836

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
IMbackK:mmid_w64
Oct 20, 2026
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
IMbackK:mmid_w64

Conversation

@IMbackK

@IMbackK IMbackK commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Mmf reduces over ggml_cuda_get_physical_warp_size blocks, but the checks in mul_mat_id use WARP_SIZE instead, meaning that wave64 devices can end up reducing over a half wave sized block.

Overview

Noticed in test-llama-archs by laguna failing on mi100

Requirements

@IMbackK
IMbackK requested a review from a team as a code owner October 19, 2026 19:53
@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning CUDA Related to the CUDA backend labels Oct 19, 2026
@IMbackK IMbackK added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Oct 20, 2026
@ggerganov
ggerganov merged commit b684498 into ggml-org:master Oct 20, 2026
18 checks passed
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 24, 2026
MuFengMuXue pushed a commit to MuFengMuXue/llama.cpp-gfx906 that referenced this pull request Oct 26, 2026
auRose94 pushed a commit to auRose94/llama.cpp that referenced this pull request Oct 28, 2026
@BrewTestBot BrewTestBot mentioned this pull request Oct 28, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CUDA Related to the CUDA backend ggml changes relating to the ggml tensor library for machine learning merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants