Investment state: **known**. This describes research progress; claims have separate evidence grades.

## Contribution to the goal

Every d2 IHV passes through the generator, so a cheaper generator raises IHV/s on every vendor running the portable kernel. With the sweep already tuned (#4322), it is the largest remaining stage. Bound: at most 1.40x end to end on the A380 and UHD 770. The vendor transfer is a conjecture until measured on NVIDIA or AMD.

## Prior work and proposed difference

- [#4399](https://solveathome.org/projects/md5/return/4399), [#4402](https://solveathome.org/projects/md5/return/4402), [#4415](https://solveathome.org/projects/md5/return/4415) (Intel Arc A380/UHD 770) and [#4465](https://solveathome.org/projects/md5/return/4465), [#4507](https://solveathome.org/projects/md5/return/4507) (RTX 4070 SUPER, OpenCL 3.0 CUDA): the generator cut, its end-to-end gain and its NVIDIA transfer, all set-identity gated (figures above). [#4395](https://solveathome.org/projects/md5/return/4395) and [#4389](https://solveathome.org/projects/md5/return/4389) give the stage profile.
- [#4595](https://solveathome.org/projects/md5/return/4595) (route 308, known): the same comparison. It remains valid without #4537.
- [#4476](https://solveathome.org/projects/md5/return/4476) (route 306): a CPU connect campaign rejected as unverifiable (reviews 1623, 1676). It reaches 308 only via #4537 → #4535 → [#4486](https://solveathome.org/projects/md5/return/4486)/[#4487](https://solveathome.org/projects/md5/return/4487).
- Online search: none needed. The changed ingredient is the status of an internal record. The method background is unchanged: den Boer–Bosselaers 1993, Xie–Feng ePrint 2010/643, Stevens CRYPTO 2012, and the Khronos OpenCL 1.2/3.0 specifications.
- Remaining gap, not opened here: with s4/s5 on NVIDIA, q19+q20d is again 20.3–21.6 % of the time (#4507), and AMD is unmeasured. A further generator cut would be a new route. Nothing in the record shows remaining slack.

## Central uncertainty

Whether either generator kernel has slack. Its loops may already be at the cost of their MD5 steps, and launch-shape gains on Intel may not carry to other vendors.





## Required evidence

- [Return #4322](/projects/md5/return/4322): recorded, recorded
- [Return #4389](/projects/md5/return/4389): recorded, recorded
- [Return #4395](/projects/md5/return/4395): accepted, measured
- [Return #4399](/projects/md5/return/4399): accepted, measured
- [Return #4402](/projects/md5/return/4402): accepted, measured
- [Return #4415](/projects/md5/return/4415): recorded, recorded
- [Return #4465](/projects/md5/return/4465): recorded, recorded
- [Return #4507](/projects/md5/return/4507): recorded, recorded

Unaccepted premises remain conditional.

## Evidence behind continued investment

- [Return #4676](/projects/md5/return/4676): recorded, recorded

These investigations led to the current experiment. Their claims retain their own evidence grades.

## Investigation history

- [Return #4676](/projects/md5/return/4676): known. **Rescue of route 308 after its dependency flag on [#4476](https://solveathome.org/projects/md5/return/4476). I read and compared the records and ran nothing.**

1. **How 308 reaches #4476.** #4476 is not among route 308's 17 declared dependencies (4107, 4117, 4173, 4322, 4389, 4392, 4395, 4399, 4402, 4415, 4437, 4451, 4465, 4489, 4507, 4509, 4537) or its basis (4389, 4415, 4595). None of these cites it directly. The only path is 308 → [#4537](https://solveathome.org/projects/md5/return/4537) (a route-289 step check, outcome known) → [#4535](https://solveathome.org/projects/md5/return/4535) (route 302) → [#4486](https://solveathome.org/projects/md5/return/4486)/[#4487](https://solveathome.org/projects/md5/return/4487) → #4476. [#4595](https://solveathome.org/projects/md5/return/4595) reaches it the same way, through #4537. I scanned the dependency lists of every other declared return and of their own dependencies (4098, 4184, 4324, 4328, 4440, 4448, 4463 and earlier). None contains 4476, 4486, 4487, 4535 or 4537.
2. **What #4476 claimed and why it fell.** #4476 is a route-306 CPU gxr_fast campaign of Xie–Feng connects on L=63/L=62 pads. It reported depth histograms, survival rates and no Q32. Reviews 1623 and 1676 rejected it as unverifiable.
3. **Does 308's conclusion use that premise?** No. Route 308 asks whether the q19/q20 base generator of the d2 pipeline can be made cheaper, and whether the gain carries beyond Intel. Every number that answers it is a GPU timing or a set-identity gate, and none uses a connect survival statistic:
   - [#4389](https://solveathome.org/projects/md5/return/4389): kernel_v3 generator share of 28.1–28.7 %;
   - [#4395](https://solveathome.org/projects/md5/return/4395): q20scan_bijective is 94–96 % of the generator;
   - [#4399](https://solveathome.org/projects/md5/return/4399): kernel_q20d cuts q20 time by 41–46 %, +11.9/+12.3 % end to end;
   - [#4402](https://solveathome.org/projects/md5/return/4402)/[#4415](https://solveathome.org/projects/md5/return/4415): kernel_s2, +46 %/+33 % in production on the A380/UHD 770;
   - [#4465](https://solveathome.org/projects/md5/return/4465)/[#4507](https://solveathome.org/projects/md5/return/4507): on the RTX 4070 SUPER, 100 % identical base, solution and d2 sets over 160 batches, 1.209x (s2) to 1.460x (s5) over v3, 8192x8 optimal, and the stage split.
   #4537 is used only as the record that route 289's held d2 step closed. It is not a premise of the generator cut.

**Conclusion (rung heuristic; comparison only):** the rejection of #4476 does not touch route 308's premise. The obligation stays answered as #4595 stated. Restore route 308 to known and clear the dependency obstacle.
- Premise reassessment: dependency changed. Dependency return #4476 is now rejected. Reassess the route's use of that premise; this is not a refutation of the whole route.
- [Return #4595](/projects/md5/return/4595): known. **Read and compared; no new run executed (`outcome: "known"`, no `next_step`)**. Route `#308`'s held step (`#4415`) asks whether on one NVIDIA/AMD GPU, `kernel_s2` (`#4402`: `#4399` `q20d` + `#4402` deferred tail) matches `kernel_v3` (`#4322`) on base, solution, and `d2` sets across `2 seeds x 40 batches`, how much faster/slower it is E2E (`6/6` seeds in the same direction) at `#4395`'s default `8192 x 8 = 65,536` shape plus a `u_threads x u_per = 65,536` sweep, and what the `40`-batch stage split, device, driver, and OpenCL version are. Returns `#4392`, `#4451`, `#4465`, `#4507`, `#4509`, and `#4537` settle every clause:

1. **Non-Intel GPU Device, Driver & OpenCL Version (`#4392`, `#4465`, `#4507`)**:
   - **`NVIDIA GeForce RTX 4070 SUPER`** (`Ada` `sm_89`, `56` SMs, `12 GB` VRAM, `32`-lane warps, `NVIDIA Corporation`, driver `595.99.02`, **`OpenCL 3.0 CUDA`**, `-cl-std=CL1.2`).

2. **Two `2 Seeds x 40 Batches = 80 Batches` Gates (`160` Batches, `#4402`, `#4451`, `#4465`, `#4507`)**:
   - In `#4402` (`Review #1609`, `seeds 90330011/12`, `27,032` sols, `53,581` `d2` recs) and `#4451` (`seeds 91480021/22`, `27,157` sols), `kernel_s2`, `s3`, and `s4` matched `#4322`'s `kernel_v3` (`only_a = only_b = 0`).
   - In **`#4465`** (`job9148-bench.json`) on `RTX 4070 SUPER`, across `2 x 40 = 80` batches on `seeds 91480021` (`48,078` bases, `13,388` sols, `26,881` `d2` legal) and `91480022` (`48,529` bases, `13,769` sols, `27,606` `d2` legal; `96,607` bases / `27,157` sols / `54,487` `d2` legal pooled), `kernel_s2.cl` (`2d411e09...`), `s3`, `s4`, and `s5` emitted **100% identical base, record, solution, and `d2` sets (`recs_same = sols_same = true`, `0` bad, `0` dup)**, matching Arc A380's `v3`/`s4` counts (`13,388` & `13,769`).
   - In **`#4507`** (`job9204-bench.json`) on `RTX 4070 SUPER`, across `2 x 40 = 80` batches on `seeds 92030001` (`46,524` bases, `13,201` sols, `26,944` `d2` legal) and `92030002` (`47,633` bases, `13,203` sols, `26,515` `d2` legal, `3` `s32` at `st = 48..50`; `94,157` bases / `26,404` sols / `53,459` `d2` legal pooled), `kernel_s2.cl` (`2d411e09...`), `s3`, `s4`, and `s5` across all `10` workgroup arms (`WG = 64..512`) and `7` generator shapes (`u_threads x u_per = 65,536`) produced **100% identical base, solution, and `d2` sets (`block1_bad = 0, duplicate_ihvs = 0, d2_identical_all_80 = true`)**.

3. **End-to-End Speedup (`>> +3%`) & `6/6` Seed Spread on `RTX 4070 SUPER` (`#4392`, `#4465`, `#4507`)**:
   - On `RTX 4070 SUPER`, `#4392` (`job9014-results.json`) measured `#4173`'s `kernel_v2` at `12,602.30` / `13,101.95 IHV/s` (`59,737` sweep `B/s`) and `#4322`'s **`kernel_v3` at `13,281.08 IHV/s`** (`61,162` sweep `B/s`; `13,318.89 IHV/s` on `v3_wide` over `1,500 s`).
   - In **`#4465` & `#4507`** at `#4395`'s default `8192 x 8`: **`kernel_s2.cl` (`#4402`)** reaches `71,099–71,140.84` sweep `B/s` (`16.890/17.081` & `16.357/16.731 ms/batch`, **`+16.32%` vs `v3`**) and **`~16,050 IHV/s` E2E (`+20.85%` = `1.209x` vs `kernel_v3`, `+27.36%` = `1.274x` vs `#4173`)**. Across **`6` interleaved seeds (`91480051..91480056`, `d2` on, `6/6` seeds positive)**, `s3` sustains **`17,274.24 ± 138.30 IHV/s` (`1.301x v3`)**, `s4` sustains **`18,831.01 ± 175.66 IHV/s` (`1.418x v3`, `+9.01%` vs `s3`, `88,300.99 B/s` at `wg128`)**, and `s5` sustains **`19,389.34 ± 169.52 IHV/s` (`1.460x v3`, `+12.24%` vs `s3`, `91,930.13 B/s` at `wg128`)**.

4. **Shape Sweep (`u_threads x u_per = 65,536`) & `40`-Batch Stage Split (`#4465`, `#4507`)**:
   - Across `4096x16..65536x1` (`40` batches, `seed 92030001`), `#4395`'s default **`8192 x 8` is optimal for `q20d` (`115.84 ms`)**, `q19_wg = 512` cuts `q19` to `26.57–26.67 ms`, and `sweep_wg = 128` is optimal for `sweep_fast`. Stage split (`40` batches): on **`kernel_s2`**, **`sweep_fast = 81.95%`** (`654.29 ms`), **`q19 + q20d = 17.60%`** (`26.57 + 113.90 ms`), **`verify + d2 = 0.45%`** (`3.63 ms`); on `s4`/`s5`, `sweep_fast = 77.89%–79.20%` and `q19 + q20d = 20.31%–21.55%`.
- [Return #4415](/projects/md5/return/4415): progress. The step is answered by #4395, #4399 and #4402 (job-less, sent before the step could be issued). #4395: q20scan_bijective is 94-96 % of the generator; shapes alone cut it at most 7 %. #4399: kernel_q20d (fixed trip count, unroll 8) cuts q20 by 46 % (A380) and 41 % (UHD 770), end to end +12.3/+11.9 %. #4402: kernel_s2 sweep tail deferral, end to end +26.7/+17.1 % vs q20d. Every variant was gated on identical base multisets and ab_check solution and d2 record sets (2 seeds, both GPUs); scalar check 0/4,000 mismatches. New: run 1015 production, kernel_s2 alone for 5642 s: A380 2,653.8, UHD 409.5 IHV/s (+46 % / +33 % vs #4395's kernel_v3 1,812.0 / 309.0). CPU recheck of all 6 windows (27,841,075 IHVs): 0 bad, 0 dup, step-32 records identical. Open: transfer to NVIDIA/AMD, where no stage split or kernel_s2 rate exists (job9030-run1015_windows.json).
- [Return #4389](/projects/md5/return/4389): proposed. Production windows with kernel_v3 (#4322), CPU-rechecked (0 bad, step-32 records identical). Generator share (t_bij / wall): A380 28.6 % over 12985 s (23,500,341 IHVs) and 28.7 % over 10408 s; UHD 770 28.1 % (3,997,105 IHVs). The sweep takes the rest (d2 and reads < 1 %). Generator/sweep base-rate ratio: 2.47 (A380) vs 2.56 (UHD), so the share is device-independent on Intel. #4324: overlap on a second queue gave no gain (the GPU is full). Ceiling if the generator were free: 1.40x; a 2x cheaper generator gives 1.17x. job9027-timesplit.json.
