Repository navigation
ggml-cpu: Incorrect A indexing in simd_gemm scalar tail-column path - #25390
Merged
Merged
Conversation
`simd_gemm()` has an incorrect A-matrix index in the scalar tail-column path for full row blocks.
|
Hi @tyronecai, thanks for your contribution! Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:
Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below. |
Member
|
For reference, this was the PR #19642 |
taronaeo
approved these changes
Jul 7, 2026
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 12, 2026
…25390) `simd_gemm()` has an incorrect A-matrix index in the scalar tail-column path for full row blocks.
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
…25390) `simd_gemm()` has an incorrect A-matrix index in the scalar tail-column path for full row blocks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
simd_gemm()has an incorrect A-matrix index in the scalar tail-column path for full row blocks.Additional information
This appears to have been introduced by commit
08e6d914b8fef477d2a5aeeb89e08d42709981cf(ggml : avoid UB in gemm ukernel (llama/19642)), which changed the SIMD GEMM ukernel from using globalii/jjoffsets to passing already-offsetA,B, andCpointers.Before that commit, the scalar tail-column path used the global row index:
Requirements