interplane.Get Omega
Read in your language

benchmarks-mv

Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.

Brought by drakestapleton

branch main Branches Tags History

benchmarks-mv / prime-drag-race / RESULTS-2026-10-05.md

117 lines · 9609 bytes Raw Blame History Rendered
1# Prime Drag Race results, 2026-10-05
2
3Note 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 and its entry in `results/2026-10-05.summary.json` were removed and 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.
4
5Environment: Linux-hosted GB10 (kernel 7.0.0-1019-nvidia, NVIDIA GB10, driver 580.173.02). This is NOT AIENOS. Nothing here measures the AIENOS kernel.
6
7Final run receipt: `evidence/2026-10-05/0947ba6292bce06d37f8e34d1aa691963fa83324f34f7b091397e933be37f9cd.json` (verdict PASS, "every audit and trial validated PASS"). Task: Sieve of Eratosthenes to 1,000,000 (78,498 primes). The earlier receipt `832d0cc8...` is the first run, superseded (see "First run, superseded").
8
9## What ran
10
11| Name | Label | Environment | What it is |
12|---|---|---|---|
13| cpu-c-base | aien-cpu-c-base | linux-host-cpu | Conventional C, one thread, base algorithm, 1 bit per number, faithful to the upstream rules |
14| gb10-native | aien-gb10-native | linux-hosted-gb10-native | AIEN native GB10 GPU path (omega GPU engine, no CUDA), C host plus native kernel, algorithm "other", not faithful |
15
16## Correctness evidence
17
18- Runner verify for the final run, 638 limits x 3 audit passes: PASS for both. Outputs: `evidence/2026-10-05/verify-final/{cpu-c-base,gb10-native}.txt` (omega c7086da, runner d66cd2a). Reference pi(1,000,000) = 78498. The same sweep also passed for the first run (`evidence/2026-10-05/{cpu-c-base,gb10-native}.txt`).
19- The run receipt itself did 5 audit passes at limit 1,000,000 against a deterministic Miller-Rabin reference with a full bitmap compare, and every trial validated.
20- GB10 chip test history, kept on purpose:
21 - FAIL `69db1465...` (omega 43ed7e3): "limit 9: mismatch", the bitmap differed from the independent oracle. The mutant check also did not catch the planted fault (mutant_caught false). Log blob eb721014...
22 - Root cause: a host-side integer square root overflowed. Fixed in omega e95c7b5.
23 - PASS `9f5f1eba...` (omega e95c7b5): 586 audit runs, 1172 passes checked against the oracle byte for byte, timed smoke pass, mutant caught. Log blob 4a44ec03...
24- Blobs (bitmaps and logs) referenced by the receipts are in `evidence/2026-10-05/blobs/` (each under 1 MB; 1.2 MB total with receipts). Each file hashes to its name.
25
26## Timed results (final run, 0947ba62)
27
28Protocol (from the receipt): n = 10 trials per implementation, at least 5 s per trial, 1 warm-up declared and discarded, round-robin interleaved, one at a time. Unit: passes per second (higher is better). Generated from the receipt with jq, not typed by hand.
29
30| Implementation | Median | Min | Max | Mean | SD | CV | n |
31|---|---|---|---|---|---|---|---|
32| cpu-c-base | 2069.43 | 2066.77 | 2071.49 | 2069.04 | 1.81 | 0.09% | 10 |
33| gb10-native | 971.48 | 962.37 | 974.98 | 969.47 | 4.45 | 0.46% | 10 |
34
35Upstream-format lines (from the receipt, `label;passes;seconds;threads;flags`, first trial of each):
36
37```
38aien-cpu-c-base;10334;5.000062;1;algorithm=base,faithful=yes,bits=1
39aien-gb10-native;4868;5.000083;8192;algorithm=other,faithful=no,bits=1
40```
41
42All upstream lines are in the receipt under `upstream_lines`.
43
44## Conditions (final run)
45
46- CPU governor: performance. Load average at start: 1.27 1.37 1.27; at end: 0.97 1.21 1.23.
47- The shared quiet flag was held during the run (receipt: "Prime_Drag_Race_final_window__retry___verify___timed_trials", 18:59:55Z to an expected 19:19:55Z).
48- Operator note (not in the receipt): an idle third-party image server was resident on the GPU, and another session was making network-bound calls during the window. The machine was not otherwise isolated.
49
50## Exact sources and binaries (from the receipt)
51
52| Item | Source commit | Binary sha256 |
53|---|---|---|
54| cpu-c-base | aien-spark/omega@c7086da992ff37e4cc955cbdc9c7f042e49d6f27 | b71725b52afa241745164ddbf3688f761e1b9c0132b3b91744664390108d557b |
55| gb10-native | aien-spark/omega@c7086da992ff37e4cc955cbdc9c7f042e49d6f27 (physics@6d7cf0d) | 54350b5ebcf244aa100b75c1efdefdb0423582107c670e3d593d98d32627bb89 |
56| runner | aien-spark/benchmarks@d66cd2a0d7556de2d4afff1b6c1ec368cec54693 | c7a4a65ae00d9fcf43d17cbeb84b1eec85308a345ef5870cdfa1ccc459c25524 |
57
58In this run each binary's own build report matches the declared source commit.
59
60## Reproduction
61
62From the receipt's `reproduction.runner_argv` field, with the withdrawn CUDA mirror arguments removed:
63
64```
65/home/drakestapleton/workspace/primes-race/benchmarks/prime-drag-race/target/release/prime_race run --impl cpu-c-base=/home/drakestapleton/workspace/primes-race/omega-gpu/bench/prime_race/build/cpu_base --impl gb10-native=/home/drakestapleton/workspace/primes-race/omega-gpu/bench/prime_race/build/gb10_native --declare cpu-c-base=algorithm=base,faithful=yes,bits=1,threads=1 --declare gb10-native=algorithm=other,faithful=no,bits=1 --source cpu-c-base=aien-spark/omega@c7086da992ff37e4cc955cbdc9c7f042e49d6f27 --source gb10-native=aien-spark/omega@c7086da992ff37e4cc955cbdc9c7f042e49d6f27 --build cpu-c-base=make prime-race-cpu (cc -O3 -mcpu=native) --build gb10-native=make PHYSICS_DIR=<physics@6d7cf0d> prime-race-gb10 (cc -O3 -mcpu=native; libomega_gpu omega CFLAGS -O2) --trials 10 --warmup 1 --limit 1000000 --min-seconds 5 --audit-passes 5 --evidence-dir /home/drakestapleton/workspace/evidence/prime-race/runs --runner-commit aien-spark/benchmarks@d66cd2a0d7556de2d4afff1b6c1ec368cec54693 --quiet-flag-file /home/drakestapleton/workspace/.spark-quiet
66```
67
68Summary file generation (jq program, run against the receipt):
69
70```
71jq --arg digest 0947ba6292bce06d37f8e34d1aa691963fa83324f34f7b091397e933be37f9cd \
72 --argjson s "$(jq .summary RECEIPT)" --arg v "$(jq -r .verdict RECEIPT)" \
73 '{schema:"aien-prime-race/summary/v1",contract_version:.contract_version,receipt_sha256:$digest,created_utc:.created_utc,unit:"passes_per_second",limit:.correctness.limit,environment_note:"Linux-hosted GB10, not AIENOS",implementations:[.implementation|to_entries[]|.key as $k|{name:$k,labels:.value.labels,environment:.value.environment,median:$s[$k].median,min:$s[$k].min,max:$s[$k].max,mean:$s[$k].mean,sd:$s[$k].stddev,cv:$s[$k].cv,n:$s[$k].n,verdict:$v}]}' RECEIPT > results/2026-10-05.summary.json
74```
75
76## First run, superseded (832d0cc8)
77
78Receipt `832d0cc8b24f95e14c13fdf37cfb4e5fed01a2ca14c369f6640bb9fcaefd13f2.json`, sources omega 2f1de85, runner 499ad0b. Kept as the record; the final run above replaces it.
79
80| Implementation | Median | Min | Max | Mean | SD | CV | n |
81|---|---|---|---|---|---|---|---|
82| cpu-c-base | 2069.65 | 2064.33 | 2104.71 | 2072.39 | 11.53 | 0.56% | 10 |
83| gb10-native | 970.8 | 962.96 | 976.09 | 970.84 | 4.32 | 0.44% | 10 |
84
85## Nonconforming notes
86
87NONCONFORMING for upstream PlummersSoftwareLLC/Primes drag-race (pinned a2899c96752b65ac1b08a0e1418ab7e708040ed0): AGPL-3.0-or-later license vs required BSD-3-Clause, language eligibility. Experimental.
88
89- License: this suite is AGPL-3.0-or-later; the upstream drag race requires BSD-3-Clause.
90- Language eligibility: a C host plus a native GB10 kernel is not an Omega-language entry.
91- Only cpu-c-base is declared faithful to the upstream algorithm rules.
92
93## What this does and does not show
94
95- It shows a correct, reproducible measurement of one small workload on a Linux-hosted GB10, with receipts anyone can re-hash.
96- A prime sieve result is not overall AIEN performance. It says nothing about AIENOS, models, or other workloads.
97- On this workload the native GB10 path was slower than our single-thread CPU baseline (median ratio 2.13x).
98- Run-to-run spread is small (CV under 1% for both in the final run: see table), so the gaps are not noise.
99
100### Where the native time goes (diagnostic)
101
102DIAGNOSTIC, not a benchmark result. Source: omega `bench/prime_race/tests/gb10_launch_cost.c` (commit dc7a3d7). Logs: `~/workspace/investigations/2026-10-05-prime-sieve-chip/runs/e4.log` and `e5.log` (local investigation folder, not in this repo). 200 launches each, time from submit to marker2:
103
104| Case | Median |
105|---|---|
106| empty kernel, 64 CTAs x 128 threads | 104.0 us (min 56.8) |
107| empty kernel, 1 CTA x 128 threads | 103.1 us |
108| sieve limit 1e6, 64 CTAs | 1028 us |
109| sieve limit 1e6, 32 CTAs | 1833 us |
110| sieve limit 1e6, 16 CTAs | 3460 us |
111| sieve limit 1e6, 1 CTA | 50086 us |
112| sieve limit 1000 | 103.8 us |
113
114- OBSERVED: kernel time minus the ~104 us launch floor is 3356, 1729 and 924 us at 16, 32 and 64 CTAs. It about halves each time the CTA count doubles. INFERRED (medium): the kernel has too little parallel work to hide memory and instruction latency. This does not by itself prove latency is the only cause; each candidate fix below needs its own measurement.
115- INFERRED, improvement 1: occupancy. The 64-CTA launch cap (omega open investigation I42) and only 4 warps per CTA limit how much latency can be hidden.
116- INFERRED, improvement 2: the emitter fully serializes instructions and waits on every uncached global load (167 table loads per word). Caching or staging the table and overlapping loads is general code generation work.
117- INFERRED, improvement 3: a fixed cost of about 104 us per launch (shader-cache invalidate, L2 flush, two markers; the marker wait polls with usleep(50)). That is about 10% of one 1.03 ms pass: removing it entirely would raise throughput by at most about 11%, so it is not the main cost.