Commit 66f3d0a
committed
fix(test): use row-pair leaves in merkle_root_parity GPU tests
gpu_merkle_root / gpu_ext3_merkle_root called keccak_leaves_base/ext3 with
rows_per_leaf=1 (per-row, num_rows leaves) but compare the resulting root
against the CPU commit_rows_bit_reversed, which uses the row-pair layout
(ROWS_PER_LEAF=2, num_rows/2 leaves, each hashing a bit-reversed row pair).
Different leaf count and bytes => different root, so the two cases never
matched main's row-pair commitment scheme.
Pass rows_per_leaf=2 so the generic GPU keccak-leaves + Merkle path uses the
same bit-reversed row-pair layout as the CPU reference. keccak_leaves.rs
already proves keccak_leaves_base(.., 2) matches the CPU row-pair prover, and
the production-pipeline parity cases (new_row_major_pipeline_*) already pass,
so this only realigns the generic-helper cases with main.
Test-only change; the proving path uses the fused row-pair pipeline and is
unaffected. GPU tests don't run in CI (no nvcc) — to be confirmed on a GPU.1 parent 7f6b85e commit 66f3d0a
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| 196 | + | |
| 197 | + | |
194 | 198 | | |
195 | | - | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
0 commit comments