You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 13ef875
Browse filesBrowse the repository at this point in the historyBrowse files
simd: masked_group_sum_i32_via — keyed group-sum with the key read through a fk hop
`out[remap[index[i]]] += values[i]` over the mask, one pass. The shape of
`SUM(line.amount) … GROUP BY partner.country`: the key lives on the foreign
table and is reached through line.partner_id. The indirection is fused into
the reduction so a remapped u32 key lane of N — exactly the intermediate the
fold exists to avoid — is never materialised. Zero-fallback at both hops.
6 unit tests (agreement with the plain form on a precomputed key lane at
n = 0/1/63/64/65/67/130, both drop arms, a 67-row tail against a naive
reference with bad addresses at both hops), fourth arm of parity group 13
(0xD30/0xD31), first-hop guard disable-verified red then green.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXUahz73MZxtxWcfpHp9dG
Copy file name to clipboardExpand all lines: .claude/blackboard.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ Added `mask_gather_u32`, `mask_scatter_or_u32`, `masked_group_sum_i32` to `simd_
4
4
All three are deliberately scalar bit-walks — permutations/scatters indexed by `index`/`keys` data, not a fixed stride, so none of this crate's backends can vector-load them (same shape as `masked_strided_group_sum`, which says so in its own doc).
5
5
`masked_strided_group_sum` is NOT a keyed group-by and never was — it sums one record's own byte-groups into a single scalar with no key at all; zero callers of either are affected by this addition.
6
6
Parity: `check_gather_scatter_group` (0xDxx) in `crates/simd-masking-parity`, against naive per-element references, disable-verified red-then-green.
7
+
`masked_group_sum_i32_via(mask, index, remap, values, out)` — the same one-pass keyed sum with the key read through a foreign-key hop (`SUM(line.amount) GROUP BY partner.country`); the indirection is fused so no remapped key lane of N is ever materialised. Fourth arm of the same parity group (0xD3x).
## 2026-09-17 (19) — G8 named: a tree-depth column (`lzcnt(bswap(x)) >> 2`) is the missing primitive for basin-local ranking; popcount is only its tie-break
0 commit comments