Repository navigation
opencl: optimize mul_mat_f16_f32 for decode - #24504
Merged
max-krasnyansky merged 1 commit intoJun 17, 2026
Merged
Conversation
lhez
marked this pull request as ready for review
June 16, 2026 03:07
Contributor
Author
|
@ggml-org/maintainers Can I get another approval please? |
taronaeo
approved these changes
Jun 17, 2026
adrianhoehne
pushed a commit
to adrianhoehne/llama.cpp
that referenced
this pull request
Jul 5, 2026
zommiommy
pushed a commit
to zommiommy/llama.cpp
that referenced
this pull request
Aug 18, 2026
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
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
The mul_mat_f16_f32 kernels do not perform well for decoding due to its work assignment, where each subgroup either produces a single result or in some cases half of a subgroup stays idle. This PR increase the work of each workgroup to better utilize the GPU.
Additional information
Details
X2-90
PR
Qwen3-4B-Q4_K_M
gpt-oss-20b
master
Qwen3-4B-Q4_K_M
gpt-oss-20b
2.50.939.564 I common_perf_print: prompt eval time = 123867.44 ms / 14407 tokens ( 8.60 ms per token, 116.31 tokens per second)
2.50.939.573 I common_perf_print: eval time = 27281.53 ms / 256 runs ( 106.57 ms per token, 9.38 tokens per second)
Requirements