Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/bench/PREREG.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / bench / PREREG.md` 116 lines · 8532 bytes Raw Blame History Rendered 1 # NG bench pre-registration: baseline omc vs gcc on GB10 (lane ng-bench) 2 3 Written 2026-11-07 ~08:05Z, committed and its sha256 posted on `~/handoffs/BOARD.md` before the first timed row. 4 Nothing in this file changes after that post; a deviation is written into BASELINE.md as a deviation. 5 6 ## What is measured 7 8 How long the programs that today's Omega compiler (omc) produces take to run, compared with the same programs 9 written in C and compiled by gcc, on both GB10 CPU core types. This is the baseline NG must beat. No hypothesis is 10 tested; the decision rule below is fixed now for the later NG A/B runs that use the same harness. 11 12 ## Pins 13 14 | item | pin | 15 | --- | --- | 16 | repository | aien-dev/omega-mv, kernels frozen at branch `ng/bench-baseline` commit ``6d348a1b3f6da1054ada9d340819b488fe5a695f`` (re-authored copy of ``f446201b``, identical tree), harness at ``d2d1715636394349bd2554be39ee6d4037d8f346`` | 17 | omc | `seed/out/omc` at main ``943d955531b9d4d9f70deb41756c0b46441dd5e0``, sha256 ``5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df`` | 18 | harness | `seed/ng/ngbench.om` sha256 ``19be4ff690a949fbdadb5e5fcb4e45faac668f259c9184b66ab1684f407e77b6``; omc output sha256 ``1a67a09d7a03a04cb168e33086db40324bf80055e97156085c1e1872b3f47e07`` | 19 | gcc | Ubuntu 13.3.0-6ubuntu2~24.04.1; sha256: `/usr/bin/aarch64-linux-gnu-gcc-13` ``a20520ee21543f243d40636a9181a142c45ecd989de31ab86b99a8ea5ada870d``, `/usr/libexec/gcc/aarch64-linux-gnu/13/cc1` ``64edfe466dd55c4216c006e9fa237af012e4974281dd4d11640aacfc3b3693af``, `/usr/bin/aarch64-linux-gnu-as` (binutils 2.42-4ubuntu2.10) ``1ffda50efb6d91b6b05ef933aced099595c36577594c0296c91161f2d13db374``, `/usr/bin/aarch64-linux-gnu-ld.bfd` ``1e4d3369b76845fa8e099b83513bf28f6f722e046f9b2cde1378c9e27f96d19c``; libc6-dev 2.39-0ubuntu8.9 | 20 | kernels | `seed/ng/bench/kernels/*.om`, `*.c`, `want/*.sha256`; sources and hashes in `kernels/PROVENANCE.md` | 21 22 ## Arms 23 24 | arm | build (cwd = omega-mv checkout, K = case) | role | 25 | --- | --- | --- | 26 | `omc` | `taskset -c 1 nice -n 10 seed/out/omc < seed/ng/bench/kernels/K.om > DIR/bin/omc/K; chmod 755` | measured | 27 | `gccO2` | `taskset -c 1 nice -n 10 gcc -O2 -static -o DIR/bin/gccO2/K seed/ng/bench/kernels/K.c` | referee, denominator | 28 | `gccO2aa` | `cp DIR/bin/gccO2/K DIR/bin/gccO2aa/K` (same bytes, second label) | A/A timing control | 29 | `gccO3n` | `taskset -c 1 nice -n 10 gcc -O3 -march=native -static -o DIR/bin/gccO3n/K seed/ng/bench/kernels/K.c` | information only | 30 31 Recorded before the run: on this host gcc 13.3 does not know the X925 or A725 cores, and `-march=native` resolves 32 to no `-march`/`-mcpu` at all (the `cc1` command line of `gcc -O3 -march=native -v` carries only `-mlittle-endian 33 -mabi=lp64 -O3`), so `gccO3n` is plain `-O3` for generic ARMv8-A. Ubuntu's gcc also adds `-D_FORTIFY_SOURCE=3 34 -fstack-protector-strong -fstack-clash-protection` by default; the gcc arms carry those. 35 36 Cases (15): `arith branch fib38 isort leafcall matmul sieve fib40 sort bcopy sha chacha linear` (omc and all gcc 37 arms), `x25519` (omc only: no C referee) and `omcself` (omc only: binary `DIR/bin/omc/omcself` = `seed/out/omc`, 38 stdin `DIR/in/omcself` = `seed/omc/omc.om` at `943d9555`, want = its own sha256 ``5f90edea`…`, the fixpoint). 39 `DIR/manifest.sha256` = `ngbench sum bin/*/*` run inside DIR after the builds; `DIR/want/` = copy of 40 `kernels/want/*.sha256`. 41 42 ## Cores, locks and rounds 43 44 | round | core | type (MIDR) | command prefix | 45 | --- | --- | --- | --- | 46 | X925 | 9 (cluster 0-9) | 0x410fd851 | `flock -x -w 3600 ~/handoffs/hive/queen/pool-8-9.lock taskset -c 9 nice -n 10` | 47 | A725 | 11 (cluster 10-19) | 0x410fd871 | `flock -x -w 3600 ~/handoffs/hive/queen/pool-10-11.lock taskset -c 11 nice -n 10` | 48 49 Both cores run the `performance` governor (max 3.9 GHz on cpu9, 2.808 GHz on cpu11). Never cores 3, 7 or 15. 50 Each round is one invocation: 51 `ngbench run 31 3 DIR omc gccO2 gccO2aa gccO3n -- arith branch fib38 isort leafcall matmul sieve fib40 sort bcopy sha chacha linear x25519 omcself` 52 that is 3 warm blocks (declared, discarded from all statistics) then 31 measured blocks. Inside a block every case 53 runs every present arm twice in palindromic order, the start arm rotating by block (see the controls evidence, 54 nc9). The lock is held only for the invocation and released after; the release is posted on the BOARD. 55 56 At each round start and end, recorded into the evidence directory: `cat /proc/loadavg`; the processes on the 57 timed core's cluster (`ps -eo pid,psr,pcpu,stat,comm` filtered to psr in the cluster); `lscpu`; the MIDR file of 58 the timed core; `hostname`; `uname -a`; `gcc --version`; sha256 of omc, ngbench and every arm binary (the 59 manifest). ngbench also writes `/proc/loadavg` in its H, L (every block) and E rows. 60 61 ## Metric 62 63 Primary: wall nanoseconds per run (ngbench T row field 6: `monons` before fork to after waitpid). 64 For a case c, a core and a measured block b: 65 66 r(b) = (wall of the two `omc` runs in b) / (wall of the two `gccO2` runs in b) 67 68 Reported per case per core: the median of r over the 31 blocks with a distribution-free 95% confidence interval 69 from the order statistics [r(10), r(22)] of the sorted ratios. Coverage, computed by Wolfram: 70 `n = 31; k = Max[Select[Range[1, 15], CDF[BinomialDistribution[n, 1/2], # - 1] <= 0.025 &]]; {k, n + 1 - k, N[1 - 2 CDF[BinomialDistribution[n, 1/2], k - 1], 6]}` 71 -> `{10, 22, 0.970551}`. 72 The same statistic for `gccO3n`/`gccO2` (information) and `gccO2aa`/`gccO2` (A/A control). 73 Summary per core: the geometric mean of the 13 per-case medians of omc/gccO2 (descriptive, no interval). 74 `omcself` (the omc self-compile) and `x25519`: per-block mean of the two omc walls, median with [x(10), x(22)]. 75 Secondary: the in-process ns that the 7 OMC-EFF kernels print on stderr (T row field 9), same ratio statistic. 76 77 All arithmetic (sorting, medians, ratios, geometric means, coverage) is done in the Wolfram MCP evaluator; each 78 query and result is saved in the evidence directory. 79 80 ## Validity rules (fixed now) 81 82 1. A round is valid only if ngbench exits 0 and its S row reads `fail=0 refused=0`: every timed run had exit status 83 0 and the stdout sha256 of its want, and every binary's sha256 matched the manifest before and after timing. 84 2. A/A control: for each refereed case, `gccO2aa`/`gccO2` passes if its 95% interval contains 1 or its median lies 85 in [0.99, 1.01]. If more than 1 of the 13 cases fails, the round is flagged NOISY; it is rerun once, and both 86 rounds are reported. 87 3. An invalid or noisy round is never silently dropped: its rows stay in the evidence and BASELINE.md says why it 88 was rerun. 89 4. No case, block or run is removed after the fact. Warm blocks are the only discarded rows, and they are declared 90 above. 91 92 ## Decision rule for later A/B runs (NG vs omc, NG vs gcc) on this harness 93 94 For arm X against arm Y on a case and core, with r(b) = X walls / Y walls per block and the interval above: 95 X is faster if the interval's upper end is below 1; X is slower if its lower end is above 1; otherwise no 96 difference is detected. A claimed speedup is the median and its interval, never a single run, and is CHIP_TESTED 97 on that core type only. A result on these 15 frozen cases is repeated on the held-out inputs below before it is 98 called QUALIFIED. 99 100 ## Held-out inputs (D9), frozen before any NG tuning 101 102 14 held-out variants, one per kernel (different sizes, seeds, moduli or patterns; omc and gcc -O2 stdout agree on 103 all 13 with a C twin; fib37 = `24157817` and fib39 = `63245986` checked by Wolfram `{Fibonacci[37], Fibonacci[39]}`), 104 kept outside the repository in `~/handoffs/hive-ng/bench/heldout/` (mode 0700) so that NG lanes do not tune on 105 them. Commitment: `MANIFEST.sha256` there (41 lines: sha256 of 14 `.om`, 13 `.c`, 14 `want/*.sha256`) has sha256 106 ``e3df0b8c6cf24d9dbc01bd74b85c70087cd7b3a0c98792d7a4fc334161645dc6``. They are revealed (committed) when the NG 107 M1+M2 slice freezes its passes, and a reviewer checks the files against this hash. 108 109 ## Known limits, stated before the run 110 111 - Cycle and instruction counters are not available: `kernel.perf_event_paranoid` is 4 on the Spark. Time only. 112 - `x25519` and `omcself` have no C referee, so they give omc's absolute time only. 113 - The MLP row is one linear layer (`linear`, M/K/N = 64/256/256, from omega-bridge `d8174edd`) with a C twin; PyTorch 114 is not installed, so there is no PyTorch arm. clang is not installed, so there is no clang arm. 115 - The Spark is shared. Other agents may run on the other cores of the cluster during a round; that load is recorded, 116 not prevented.