Repository navigation
add debug code - #3122
Closed
LJ-underdog wants to merge 1 commit into
Closed
add debug code#3122LJ-underdog wants to merge 1 commit into
LJ-underdog wants to merge 1 commit into
Conversation
bong-water-water-bong
added a commit
to 1bit-MONSTER/llama.cpp
that referenced
this pull request
Nov 21, 2026
…dropping it cannot be the cheap fix A read-back-named value on a match that does not extend past its root must still take the exemption: the match is its own root and writes the value, so the kernel runs. Without this arm the cheapest way to make the get_rows_scale rows pass is to remove the exemption entirely, which sends every extended match to the unfused path -- a correctness fix turned into a performance regression nobody attributes to it. The fixture's kernel is the SingleOp registration, not the Fused "next" one, and the reason is in the matcher rather than in this change: common.get_rows.f32_next requires a consumer demanding an alternate of the value (collect_alternate_demands(graph, *match.output) non-empty), and this graph's output has no consumer at all. Measured on the device with the engine#3122 patch in place: "scheduled kernels: loom_libs:ggml_get_rows_f32" -- the requested value did not cost the match its exemption.
bong-water-water-bong
added a commit
to 1bit-MONSTER/llama.cpp
that referenced
this pull request
Nov 21, 2026
…dropping it cannot be the cheap fix A read-back-named value on a match that does not extend past its root must still take the exemption: the match is its own root and writes the value, so the kernel runs. Without this arm the cheapest way to make the get_rows_scale rows pass is to remove the exemption entirely, which sends every extended match to the unfused path -- a correctness fix turned into a performance regression nobody attributes to it. The fixture's kernel is the SingleOp registration, not the Fused "next" one, and the reason is in the matcher rather than in this change: common.get_rows.f32_next requires a consumer demanding an alternate of the value (collect_alternate_demands(graph, *match.output) non-empty), and this graph's output has no consumer at all. Measured on the device with the engine#3122 patch in place: "scheduled kernels: loom_libs:ggml_get_rows_f32" -- the requested value did not cost the match its exemption.
bong-water-water-bong
added a commit
to 1bit-MONSTER/llama.cpp
that referenced
this pull request
Nov 21, 2026
…dropping it cannot be the cheap fix (#479) A read-back-named value on a match that does not extend past its root must still take the exemption: the match is its own root and writes the value, so the kernel runs. Without this arm the cheapest way to make the get_rows_scale rows pass is to remove the exemption entirely, which sends every extended match to the unfused path -- a correctness fix turned into a performance regression nobody attributes to it. The fixture's kernel is the SingleOp registration, not the Fused "next" one, and the reason is in the matcher rather than in this change: common.get_rows.f32_next requires a consumer demanding an alternate of the value (collect_alternate_demands(graph, *match.output) non-empty), and this graph's output has no consumer at all. Measured on the device with the engine#3122 patch in place: "scheduled kernels: loom_libs:ggml_get_rows_f32" -- the requested value did not cost the match its exemption. Co-authored-by: bong-water-water-bong <[email protected]>
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.
No description provided.