Prime Drag Race optimization campaign, 2026-10-05
Note of 2026-10-15: the CUDA mirror entry was withdrawn from this record under AIEN's rule that we never
compare ourselves with other people's systems: speed is measured against the machine's physical limit,
and correctness against our own reference. Its rows stay in git history. The sealed run receipts under
evidence/ still hold the withdrawn CUDA runs, because each receipt is named by its own digest and cannot be edited.
The record in RESULTS-2026-10-05.md is frozen and is not changed here. This file reports each
optimization step of the native GB10 implementation against that frozen baseline, one variable per
step, with correctness re-proved on the chip before every timed run.
Frozen baseline: receipt 0947ba62 (omega c7086da, runner d66cd2a), limit 1,000,000, 10 trials of at
least 5 s each, medians in passes per second:
| cpu-c-base | gb10-native |
|---|---|
| 2069.43 | 971.48 |
Claim tags: OBSERVED (measured, receipt cited), DOCUMENTED (quoted source), INFERRED (reasoned, with confidence), UNKNOWN.
Result
On the DGX Spark under Linux, AIEN's native GPU prime sieve ran 20.3x faster end to end than the frozen native baseline, with correctness checked against our own reference on the chip.
Same-session run with the best native configuration (receipt 1a3eafe9, omega c505e7f,
128-CTA budget, 2000 us marker spin; CPU program unchanged from the frozen run):
| cpu-c-base | gb10-native |
|---|---|
| 2068.37 | 19701.34 |
OBSERVED: gb10-native is 20.3x the frozen 971.48 and 9.5x the CPU base (native sd 100.7). All verdicts in the receipt are PASS (5-pass audits, warmup, 10 trials per implementation).
Steps (each against the frozen baseline; A-B-A or A-B-C-A order inside one quiet window)
| Step | One change | Timed medians (passes/s) | Effect | Receipts |
|---|---|---|---|---|
| C1 | CTA budget setting (PR_GB10_CTA_BUDGET), default 64 unchanged | 966.32 @64, 1605.09 @128, 965.69 @64 | 1.66x | d929e3cc, 159dd3fd, 7dd501e3 |
| C2a | Three table loads issued together, one wait (ld_group) | 966.29 old, 1207.15 new, 967.97 old; 1939.78 new @128 | 1.25x @64 | 8c8c2a9b, 6a6e6766, 7ad7eeec, c680704c |
| C3 | Prime table staged in shared memory | 1210.46 C2a, 1082.09 C3, 1209.58 C2a; 1914.68 C3 @128 | 0.89x (slower) | 15310126, bdea5434, c1c17c02, fa0577a3 |
| C4 | Marker wait spins up to 2000 us before the 50 us sleep-poll | 1083.28 off, 1145.92 on, 1079.75 off; 2034.94 on @128 | 1.06x @64 | 93436c5e, c3ba5638, 0de6873f, 29817dce |
| C2b | Mesa NAK-derived fixed-latency scheduling (by GPT-6 Astra) | 1146.63 base, 1169.77 sched | 1.02x @64 | 57394a4e, df51af20 |
| C5 | Sieve mark loop with a warp-uniform trip count | 9138.76 @64, 1145.70 base; 19704.31 @128 | 7.81x @64 | 25caf969, 4173eef3, 20e469ea |
| C7 | Staged table on or off (PR_GB10_TABLE auto vs global), one binary, after C5 | 9181.66 auto, 11364.76 global, 9122.05 auto, 11333.47 global @64; 19718.99 auto, 17012.24 global, 19665.75 auto @128 | shared 0.81x @64, 1.16x @128 | a9528fc7, e984949b, 8e4dd91e, f8bfeff1, 2c0b0912, c294fb88, b00ddaa8 |
All CTA counts above are budgets; a budget of 128 gives a grid of 123 at this limit. C2b and C5 legs all
use the C4 spin. C7 used omega 9dee7b1 (C5 code plus the table switch, default unchanged).
Full receipts: evidence/2026-10-05-campaign/c1 to c7.
Correctness before every timed run (OBSERVED, verify/ per step): runner verify sweep (638 limits, 3
audit passes, tiny sizes and partition edges) at budgets 64 and 128; big limits 999,999 to 2^24 + 1 at
budgets 64 and 1024; from C3 on also 127,667,399 to 127,667,402, where the shared-memory table stops
fitting. The mutant build (one correction dropped) was caught on the bitmap at budgets 64 and 1024 in
every window from C2 on. C1's mutant control was invalid (rejected on its name, not its bitmap) and was
redone in C2.
Causes
- Lane divergence was the main cost (C5). INFERRED, high confidence, from the A/B: the old mark loop
ran
while j < 32, a branch whose trip count differs per lane, and the emitter places no reconvergence point. Making the trip count depend only on the prime (the same for every active lane) gave 7.81x with nothing else changed. GPT-6 Astra's cycle model predicted this before the run: the fixed-stall critical path is about 30 to 60 us per launch, far below the measured 821 us, while fully serialized lanes land near the measured times (astra/REPORT.md). - Not enough parallel work (C1). OBSERVED: 1.79x lower kernel time for 1.92x more threads. The I42 64-CTA cap did not reproduce up to 1024 CTAs.
- Host wait, not the chip, made the launch floor (C4). OBSERVED in the diagnostic tool: an empty launch took 103 us with the sleep-poll and 6 us with the spin. Run-to-run spread also fell about 10x.
- Fixed stall counts are not the bottleneck (C2b). OBSERVED 1.02x, as Astra's model predicted.
- Table loads were not the bottleneck (C3). OBSERVED: shared memory made it slower. This refuted the earlier inference from C2a. The cause of C3's extra ~97 us per launch at 64 CTAs is UNKNOWN; a changed shared-memory carveout is ruled out (QMD min/max/target unchanged, DOCUMENTED in Astra's report).
- The best table placement depends on the launch configuration (C7). OBSERVED, one binary, only the table mode changed, A-B-A-B at 64 CTAs and A-B-A at 128: global wins by about 24% at 64 CTAs, shared wins by about 16% at 128. The shared table wins at the measured best configuration, so it stays the default. The mechanism is UNKNOWN; L2 contention among 123 CTAs reading the global table is a hypothesis (INFERRED, low), left as follow-up research.
General FORGE/Omega wins vs sieve-only
General (shared Omega GPU code; coverage limited to what was tested):
- C4 marker spin in the GPU session: about 97 us less per launch in the launch-cost tool (OBSERVED). Any short kernel that waits on the marker should gain the same (INFERRED); other workloads are not measured.
- C2b NAK-derived scheduling for every elementwise family, plus a fixed-RAW hazard checker. It passed all 31 existing elementwise kernel checks on the chip (OBSERVED). Speed effects on other Omega workloads are not measured. Predicate guard delay is now 14, the reference value, up from 13.
- C2a
ld_groupand the scoreboard hazard checker; C3's QMD shared-memory size support and the simulator's barrier and race model; the C1 finding that 1024-CTA launches work. - The C5 lesson: the emitter has no reconvergence point, and lanes that take different paths can cost about 8x here. The general fix is structured reconvergence in the code generator, preserving program behavior, not a hand rewrite of every such loop. Filed as aien-spark/omega#308, with this sieve's original loop as a regression case beside other loop shapes (if/else, lane-dependent break, nesting, early exit before a barrier or shuffle). The attention kernel already hit the correctness side of the same gap on 2026-10-04.
Sieve-only: the C5 loop rewrite itself, the C3 staged kernel (default at limits up to 127,667,400; after C5 it is the measured winner at 128 CTAs and the loser at 64, see C7), and the CTA budget value for this grid.
Limits
- Linux-hosted GB10, not AIENOS. One workload, one limit.
- The native GPU path is now launch-bound: about 45 us submit-to-marker per pass.
- C1 receipts carry the label
c7086daon a binary that contains thedea8b5ccode (stale-label build bug, fixed in omega0dc96dc; the strings differ only in the label). Every later step's labels are exact. - Omega PR #307 (stacked on #303) holds the code. Nothing here is merged by this session.
Post-merge check (omega main 2041f24, 2026-10-06)
Omega #303, #307 and #310 (structured reconvergence, #308) were merged by the merging session after the
CAND-3 freeze, rebased onto main with content identical to the measured branch heads. One sanity pass on
the combined main 2041f24, under a quiet hold: build plus host checks (172/172 sieve host checks,
24/24 elementwise host checks), runner verify sweep at 128 CTAs, big limits at 1024 CTAs, mutant caught,
the 31-check elementwise chip gate, and one short timed run (5 trials, same settings as the best-configuration run).
OBSERVED: median 19761.74 passes/s against the screen of 0.95 x 19701.34 = 18716 (receipt
3dda5591, executable SHA-256 3a2719ab..., all 8 verdicts PASS). No regression after integration.
This is a screen only; the campaign result stays on the same-session receipt 1a3eafe9.
Evidence: evidence/2026-10-05-campaign/postmerge-2041f24/.
Integration
Every measured revision is preserved as a tag so squash merges and branch deletion cannot lose it:
omega prime-race/measured-<short> for c7086da (frozen), dea8b5c, 0dc96dc, 75c43c2, d6632db, 028f69c,
888a011, c505e7f (best configuration) and 9dee7b1 (C7); this repo prime-race/measured-runner-d66cd2a.
Merge order (the merging session does this): retarget omega #307 to main, merge #303, rebase #307 and
merge it; the same for #15 over #14 here; aien-architecture #140 in any order.
After #307 is on omega main, the combined code is rebuilt, host-tested, verify-swept and given one
short timed run at the recorded settings, compared against receipt 1a3eafe9.
The short run only screens for an obvious regression; the campaign result rests on the repeated
same-session receipt 1a3eafe9. The post-merge check writes a new receipt that records the
merge revision and the SHA-256 of each executable.
Automated checks at hand-off: omega #307 at 9dee7b1 has 29 passed and 8 skipped. Six skipped jobs
(turing, brownian, polyglot, algebra, path, argus) run only when a change touches their own paths, which
this one does not; test-numeric-transc-full is too long for a hosted runner (every 32-bit input, twice);
test-m17 needs the GB10 chip. This repository (benchmarks) has no automated checks configured.