Skip to content

add debug code - #3122

Closed
LJ-underdog wants to merge 1 commit into
ggml-org:masterfrom
LJ-underdog:llama_debug
Closed

LJ-underdog wants to merge 1 commit into
ggml-org:masterfrom
LJ-underdog:llama_debug

Conversation

@LJ-underdog

Copy link
Copy Markdown

No description provided.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant