Repository navigation
Commit 02a332a
committed
block whir: the finish packs its tables as it builds them, phase A takes them narrow (cut b2)
After b1 the 4.13x high-water is the finish itself (BIG 561: at p5's end the
finish holds its tables, 24.6 GiB at eight bytes a cell, beside held_narrow and
its op lists). b2 keeps those tables packed from the moment each is generated.
- multilinear: NarrowColumns::pack_row_major packs a row-major trace column by
column (#1013's NarrowMain::pack, the same layout), and
TraceData::new_narrow holds packed columns from the start.
- stark: TraceTable::pack_main_narrow / narrow_main / take_narrow_main (the
packed main trace, no 64-bit copy kept); CommittedTable::from_narrow (a
layout whose committed columns are the main columns in order).
- trace builder: StreamSkip::pack and WindowedTraceBuilder::pack_finished_tables:
each table the finish generates is packed as it is made, chunk by chunk.
KECCAK, ECSM, ECDAS and an unchunked KECCAK_RND stay wide (the block cuts
them after the build).
- block whir: BlockOptions::pack_finished (production on,
BLOCK_WHIR_PACK_FINISHED=0|1): a packed table is laid out narrow
(table_of_narrow: the packed columns become the table's, its preprocessed
columns checked word for word against the program's), with no transposition
and no wide column made. The BLOCK REST PACKED line counts them.
- phase A: a group holding a narrow table is uploaded packed and widened on the
card (upload_group), the commit reads handles (a host fallback widens), and
M4's packer skips what is narrow already. The memory log counts held bytes.
The tables, groups and proof bytes are the same: a test proves
test_keccak_multi with b1 and b2 on and off, inline and on three layout
workers, and compares the partition, the statement and (deterministic grind)
the bytes; a packed table whose first preprocessed column differs in one word
is refused (mutation: with the comparison off, that test fails).1 parent 6c05dfe commit 02a332a
12 files changed
Lines changed: 661 additions & 107 deletions
File tree
- crypto
- multilinear/src
- stark/src
- prover/src
- block_whir
- lfm
- tables
- trace_builder
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
289 | 340 | | |
290 | 341 | | |
291 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
109 | 163 | | |
110 | 164 | | |
111 | 165 | | |
| |||
374 | 428 | | |
375 | 429 | | |
376 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
377 | 475 | | |
378 | 476 | | |
379 | 477 | | |
| |||
0 commit comments