Repository navigation
CUDA: fix sm_70 tile compilation error - #29224
Merged
Merged
Conversation
The 5-argument load_ldmatrix added in 1884824 only defines tile<16,8>, so the Volta tile<8,4> does not match. See ggml-org#29222 for details. Building on 1884824, generalize the tile shape of the 5-argument load_ldmatrix from <16,8> to <I,J>, so the non-swizzle branch forwards to the 3-argument loader for any shape. Local compilation and testing passed. Assisted-by: DeepSeek V4.1 Flash (OpenCode)
JohannesGaessler
approved these changes
Sep 21, 2026
|
Hi @lingyezhixing, 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. |
Contributor
Author
|
@ggml-bot AI assisted me with troubleshooting and code changes, but the issue, PR description, and PR commit were written by me. My native language is not English, so I used AI for translation. |
1 task done
LadislavSopko
pushed a commit
to 0ics-srls/llama.cpp
that referenced
this pull request
Oct 5, 2026
The 5-argument load_ldmatrix added in 3de51d3 only defines tile<16,8>, so the Volta tile<8,4> does not match. See ggml-org#29222 for details. Building on 3de51d3, generalize the tile shape of the 5-argument load_ldmatrix from <16,8> to <I,J>, so the non-swizzle branch forwards to the 3-argument loader for any shape. Local compilation and testing passed. Assisted-by: DeepSeek V4.1 Flash (OpenCode)
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 7, 2026
The 5-argument load_ldmatrix added in 1884824 only defines tile<16,8>, so the Volta tile<8,4> does not match. See ggml-org#29222 for details. Building on 1884824, generalize the tile shape of the 5-argument load_ldmatrix from <16,8> to <I,J>, so the non-swizzle branch forwards to the 3-argument loader for any shape. Local compilation and testing passed. Assisted-by: DeepSeek V4.1 Flash (OpenCode) (cherry picked from commit b1c2863)
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
Fixes #29222.
The 5-argument
load_ldmatrixadded in 1884824 only definedtile<16, 8>, so the Voltatile<8, 4>used by sm_70 had no matching overload andfattn.cufailed to compile.This PR generalizes the 5-argument
load_ldmatrixtile shape from<16, 8>to<I, J>. The non-swizzle branch forwards to the 3-argument loader, so any tile shape works. The swizzle branch is restricted to<16, 8>with newly addedstatic_assert(I == 16)/static_assert(J == 8).This follows the existing pattern of
load_ldmatrix_transin the same file, which is already shape-generic plusstatic_assert(I == 16).Only sm70 was affected; other architectures were checked. CI does not build sm70, so this was not caught.
Local compile and test passed.
Requirements