README: cover CUDA BCH, CUDA Chase-1, phase-2 findings, four defences with lzply.com article links
This commit is contained in:
1 parent
fe512e6df2
commit
5362ad35b0
1 file changed
+40
-2
@@ -240,6 +240,31 @@ it). Full design, bounds, and measured numbers:
|
||||
(round-trips, old-format rejection, corruption matrix,
|
||||
false-accept measurement).
|
||||
|
||||
On NVIDIA GPUs the Chase-1 scan runs on CUDA instead — 453–512x
|
||||
faster with bit-identical candidates; see "CUDA acceleration" below.
|
||||
|
||||
## CUDA acceleration
|
||||
|
||||
Optional: built only when `nvcc` is present (CUDA 13.x); without it
|
||||
the CPU path is unchanged and nothing is lost.
|
||||
|
||||
* **CUDA BCH remainder** (`bch_cuda.cu`, `bch_cuda_test.c`): the
|
||||
remainder computation that dominates `-e7` encode moves to the
|
||||
GPU — t=32 runs 1,094 MB/s vs 22.8 MB/s on the CPU (48x), and a
|
||||
full `-e7` encode drops from 2.439 s to 0.571 s (4.3x end to end).
|
||||
Verified by `bch_cuda_test`: 612 checks, 0 fails.
|
||||
* **CUDA Chase-1** (`chase_cuda.cu`, `CHASE_CUDA.md`): the
|
||||
deep-repair Chase-1 scan (one CUDA thread per trial position,
|
||||
Berlekamp-Massey + the lambda-splits test in-kernel) — 453–512x
|
||||
vs the CPU scan (171.571 s -> 0.335–0.379 s on a 524 KiB block,
|
||||
m=22, t=8) with bit-identical candidate sets (same hash, same
|
||||
candidates, same order) across 5 patterns, and 453–562x across a
|
||||
24-pattern sweep with 10/10 CPU/CUDA hash agreements. t=8 only;
|
||||
Chase-2 is not ported. Benchmark with `chase_bench_cuda`
|
||||
(vs `chase_bench_cpu`).
|
||||
|
||||
Write-ups: [171 seconds to a third of a second: deep-repair Chase on CUDA runs 500x faster](https://www.lzply.com/cuda-chase-500x-deep-repair/) and [GPU day: BCH, zseg, and the mixer that said no](https://www.lzply.com/gpu-day-bch-zseg-mixer-no/) (which also covers the segment-parallel zpaq driver, now in [lzpaq](https://github.com/cnmcdee/lzpaq), and the zpaq context-mixer GPU port — a negative: per-bit sequential dependencies, 32–64 MB of mutating tables).
|
||||
|
||||
## Building
|
||||
|
||||
```sh
|
||||
@@ -466,6 +491,8 @@ standalone tools, built with `make exp` / `make experiments` and
|
||||
smoke-tested by `tests/run_integration_tests.sh` as part of
|
||||
`make test`.
|
||||
|
||||
Write-up with the measured tables: [Four new defences, measured](https://www.lzply.com/four-new-defences-measured/).
|
||||
|
||||
## Limitations (v5)
|
||||
|
||||
* Whole files are buffered in memory (compress, BCH, and
|
||||
@@ -757,5 +784,16 @@ nonlinear CRC hybrids), scored on d_min / burst length / cost
|
||||
against CRC-16, shortened BCH, and RS. Full report:
|
||||
`randfec/RANDFEC.md`. Headline: random CRC polynomials beat
|
||||
shortened BCH at n<=32 and at n=64 when searched at the target
|
||||
size; ROT/XOR, product, and nonlinear families do not. Research
|
||||
only — nothing integrated into lzply core.
|
||||
size; ROT/XOR, product, and nonlinear families do not.
|
||||
|
||||
Phase 2 (`randfec/PHASE2.md`, `PHASE3.md`, `PHASE4.md`) took three
|
||||
further shots at a better lzply: **GRAND-MO** — noise guesses
|
||||
ordered by a burst model fitted to real archive damage — beats
|
||||
Berlekamp-Massey (e.g. 89.78 -> 97.48 repair rate on burst damage);
|
||||
a **RaptorQ outer layer** ties Reed-Solomon everywhere (max gap
|
||||
0.06 points over 350,300 trials) and wins nowhere; and the **CRC
|
||||
polynomial swap** buys nothing under an ML decoder (within +/-0.35
|
||||
points at n<=32, worse at (64,48,16)). Short LDPC was a dead end
|
||||
too — no per-bit reliability signal exists in lzply's channel.
|
||||
Write-up: [Three shots at a better lzply](https://www.lzply.com/three-shots-at-a-better-lzply/).
|
||||
Research only — nothing integrated into lzply core.
|
||||
Reference in new issue
Block a user