Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
M1 block 1: measure both realization schedules (PRELOAD vs SEQUENTIAL) on the Spark
Closed · #574 · open 2026-10-19 14:05 UTC · closed 2026-11-05 01:48 UTC (reason completed)
Imported from GitHub aien-dev/omega-mv#574, by drakestapleton
drakestapleton wrote on 2026-10-19 14:05 UTC
Part of the hardware-first search (tracking issue linked below). Omega pinned at f4a9849f.
src/omega_realize_synth.c:172 picks a schedule by rule: issue width >= 4 and >= 16 GPRs -> PRELOAD, else SEQUENTIAL. Nothing measures whether that is the cheaper choice.
Do
Force each schedule on the programs the existing realization synth tests already use.
Record per program: wall time per execution, instruction bytes emitted, differential verifier pass/fail, commit hash, command line, timestamp.
Idle baseline 60 s before the block. Wall power if the Spark exposes a sensor (nvidia-smi -q -d POWER, /sys/class/hwmon); otherwise report time only and say energy is missing. No inferred joules.
Rules: run under flock /tmp/aien-gb10.lock; never kill a running job; no change to the 18091 server or any service.
Done when: a CSV in Spark ~/yardsticks/aien-model/M1/block1.csv and a handoff note, with a one-line answer to: does the line-172 rule pick the faster schedule on this machine?
drakestapleton wrote on 2026-10-19 14:05 UTC
Tracking issue: aien-dev/omega-mv#578
drakestapleton wrote on 2026-10-19 14:20 UTC
Measured (block1.csv, bench/m1/block1_sched.c). Branch m1/hardware-passport (e0acdcb1), receipts in Spark ~/yardsticks/aien-model/M1/, handoff ~/handoffs/2026-10-19-m1-hardware-passport.md. Machine was under load 20 to 25 the whole time (other agents); no wall-energy sensor on this box, so joules are NOT MEASURED.
The rule picks PRELOAD for all 10 programs (12 to 1284 code bytes); both schedules verify on every program.
Code alone, mapped once, 20M calls: PRELOAD vs SEQUENTIAL differ by under 10 percent, sign flips by program. 0.5 ns/call at 12 bytes, 16 to 38 ns larger.
The path Omega runs (omega_exec_native_f3: mmap, copy, mprotect, call, munmap each call): 19.4 to 22.8 us per call, same for both schedules.
Answer: the line-172 rule neither helps nor hurts measurably. Schedule is 0.1 percent of realization cost; per-call page setup is 99.9 percent. That is the number the cost model should carry.
drakestapleton wrote on 2026-10-19 15:07 UTC
Fixed on branch fix/exec-native-code-cache (c9a7aa4d). omega_exec_native_f3 keeps the last 64 distinct realizations mapped (LRU, identity = the bytes). block1_after_cache.csv: 19 to 23 us per call before, 6 to 65 ns after (300x to 3000x), same results. New test tests/exec/test_exec_native_cache.c; realization gates 503380/503380. Full host suite running.
did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:38 UTC
Recovered GitHub comment. Original issue #574 ยท posting receipt 803b07417bd4467b1b6b6b0b8697295c6b0882d7793652e2f42bff4eca9d31d5
Done. Measured blocks are filed with commit, command and timestamp headers in ~/yardsticks/aien-model/M1/block1.csv, block2.csv and block4.csv; the hardware passport handoff ~/handoffs/2026-10-19-m1-hardware-passport.md (line 9) answers the open question. The fix (tests/exec/test_exec_native_cache.c) is on main d3d1b1bc7. block3 is tracked separately on #576. Sweep P-DRA-9 lane I1.