Repository navigation
vulkan: Add a larger tile size for conv3d (coopmat2 only) - #29920
Merged
Merged
Conversation
Contributor
|
I can measure a perf improvement on RTX 3090, similar to your 5090 numbers, but this change regresses my DGX Spark significantly. RTX 3090
DGX Spark GB10
|
Contributor
Author
|
That's kind of surprising. I wonder if this is thrashing the L2 cache similar to what can happen with large matmul. I'll try to repro with my 4070 when I get a chance. |
Contributor
Author
|
I ran this on 4070 and get around a 15-20% perf increase across these shapes. FB bandwidth and L2 size are a bit different but otherwise this is a reasonably similar configuration. I can't explain the difference. |
Contributor
|
I'll try to find the cause on the Spark. |
Contributor
This adds a larger tile size, in practice it is only for coopmat2 where we don't need shared memory to store the output (would use more than 64KB). Add some additional representative backend tests. At least, this is what codex came up with from looking at sd.cpp Wan VAE.
jeffbolznv
force-pushed
the
conv3d_tuning
branch
from
October 23, 2026 14:51
917bdac to
6ce7e35
Compare
Contributor
Author
|
Thanks for finding that. I've gated the change to only use the new tile size on newer drivers. |
0cc4m
approved these changes
Oct 24, 2026
auRose94
pushed a commit
to auRose94/llama.cpp
that referenced
this pull request
Oct 28, 2026
…9920) * vulkan: Add a larger tile size for conv3d (coopmat2 only) This adds a larger tile size, in practice it is only for coopmat2 where we don't need shared memory to store the output (would use more than 64KB). Add some additional representative backend tests. At least, this is what codex came up with from looking at sd.cpp Wan VAE. * only apply large tile size for newer driver versions
1 task done
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 30, 2026
…9920) * vulkan: Add a larger tile size for conv3d (coopmat2 only) This adds a larger tile size, in practice it is only for coopmat2 where we don't need shared memory to store the output (would use more than 64KB). Add some additional representative backend tests. At least, this is what codex came up with from looking at sd.cpp Wan VAE. * only apply large tile size for newer driver versions
dzannotti
added a commit
to halo-box/strix-llama.cpp
that referenced
this pull request
Nov 17, 2026
Upstream: ggml-org/llama.cpp 5cb9516..ef3848f (5 commits) Conflicts: - ggml/src/ggml-vulkan/ggml-vulkan.cpp: took upstream ggml-org#29929 ggml_vk_conv3d_select_shape (split_k for conv3d, coopmat2 only); the fork side was upstream's previous version (ggml-org#29920) with one extra blank line, no fork change. Assisted-by: Claude Opus 5.5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
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
This adds a larger tile size, in practice it is only for coopmat2 where we don't need shared memory to store the output (would use more than 64KB).
Add some additional representative backend tests. At least, this is what codex came up with from looking at sd.cpp Wan VAE.
Perf on RTX 5090:
Requirements