kbench: a report whose counts disagree with each other fails a test

The checked-in libr4d section of Rows nothing ran said 239 not reached
over a table of 243: 486c9331 added the four kv_store_streamed rows to
the table without the count (the previous regeneration, 1e968f6e, was
consistent at 239/239). The generator prints header and table from one
vector, so a file like this cannot be one run's output: it is a hand-
merged regeneration, and its headline (132 of 510) and section totals
read four rows short of the tables.

Count the rows each section emits (tests/kernel_report_check.sh), fail
the fast tier when a header and its table disagree or the headline no
longer adds up, and correct the report to the numbers its own tables
show: libr4d 243 not reached, 291 declared (the four rows are in
r4d_rows.cpp and the library reports them), headline 132 of 514.
Regenerating the report from one run on a rig with cards supersedes the
corrected numbers; the test keeps the file honest.
This commit is contained in:
griffin-warrior authored and StillDeadcode committed 2026-10-28 11:37:51 +01:00
1 parent 7a039cbb5c
commit 1f4f4420e9
3 files changed
+62 -3

No files matched your search

+3 -3
View File
@@ -21,7 +21,7 @@ pass reached; the Rows nothing ran section lists the rest.
| library | version | domain | rows | run | ops | graph | cases | pass | fail | worst rel_l2 | median us |
|---|---|---|---|---|---|---|---|---|---|---|---|
| `libavx` | 0.1.0 | host | 100 | 42 of 100 | 100 of 147 | 43 of 43 | 734 | 734 | 0 | 9.01e-04 | 78.91 |
| `libr4d` | 0.5.0 | device | 287 | 48 of 287 | 142 of 147 | 43 of 43 | 734 | 734 | 0 | 4.27e-03 | 12.78 |
| `libr4d` | 0.5.0 | device | 291 | 48 of 291 | 142 of 147 | 43 of 43 | 734 | 734 | 0 | 4.27e-03 | 12.78 |
| `libref` (oracle) | 0.1.0 | host | 123 | 42 of 123 | 123 of 147 | 43 of 43 | 734 | 734 | 0 | 0.00e+00 | - |
Rows declaring an optional hook (tuning, fusion, weight layout):
@@ -34,7 +34,7 @@ Rows declaring an optional hook (tuning, fusion, weight layout):
## Rows nothing ran
132 of 510 declared row(s) were reached by a case in this pass.
132 of 514 declared row(s) were reached by a case in this pass.
`libavx`: 58 row(s) not reached:
@@ -99,7 +99,7 @@ Rows declaring an optional hook (tuning, fusion, weight layout):
| `avx_silu` | `silu` |
| `avx_softmax` | `softmax` |
`libr4d`: 239 row(s) not reached:
`libr4d`: 243 row(s) not reached:
| kernel | op |
|---|---|