interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / evidence / C4-STREAMS / README.md

33 lines · 3926 bytes Raw Blame History Rendered
1# C4: streams and events on the GB10 (docs/OMEGA.md row C4)
2
3Row C4: two independent queues of the same work finish in under 0.75 of the sum of their solo times; an event wait
4orders two dependent jobs, checked by data, on the chip.
5
6What this branch adds:
7- L136's second GPFIFO queue (physics feat/gpu-channels 7476de71, rebased onto physics main as fb2ac4c = physics PR #79, the commit physics.lock now pins; omega 449be575 + 0cf570dd): `omega_gpu_session_extra_queue`
8 and `omega_gpu_cmdlist_submit_pair` (list A on queue 0, list B on queue 1, both submitted before either is waited).
9- The event: `omega_gpu_cmdlist_wait_for(cl, other, i)`. The next launch added to `cl` starts only after launch `i` of
10 `other` has released its semaphore: a host semaphore ACQUIRE (the chip-proven omega-mv#580 ORDER_SEM words) before the
11 launch's barrier, so its cache invalidate comes after the wait.
12- `first_barrier_none`: no WAIT_FOR_IDLE before the first launch of a submission (a WAIT_FOR_IDLE may also wait for the
13 other queue's grids; the test measures both).
14- `tests/gpu_streams_test.c`: half-chip spin kernel (24 CTAs x 128 threads, FFMA chain, exact value) and copy kernel,
15 both from Omega's IR and our own sm_121 encoder.
16
17| log | what | result |
18| --- | --- | --- |
19| 01-host-only.log | codegen + encode of both kernels and their mutants; wait_for refusals | PASS (5 checks), 2026-10-24T23:29Z on the train tip |
20| 02-sim.log | warp simulator: exact values in both scheduling orders, mutants caught | PASS (9 checks), 2026-10-24T23:29Z on the train tip |
21| 03-chip-values-20261022-f792cd1d.log | chip, values only, 2026-10-22 07:06Z on `c5/isolation` f792cd1d (older head; run by the dead worker, log recovered unpushed, durable copy `~/handoffs/evidence-L386-chip-20261022/`): second queue opens; event refusals right; with the wait every Y right (0 wrong of 3072) in both barrier modes; but the NEGATIVE CONTROL IS NOT RED: without the wait Y was also right (0 wrong, both barrier modes), so the run reports `C4 streams values: FAIL (1 of 6)`. Until the control goes red the event proof is not a proof: the two channels may not have run concurrently (Cortex 27f2ae96: two channels of one group ran two decode streams in 0.9990x serial time; whether GB10 time-slices channels of one group is UNKNOWN). Overlap NOT_RUN (values-only). | FAIL (control not red) |
22| 04-chip-values-20261025-048e5f5.log | the same values run after the driver cause was found and fixed: each extra channel now allocates its own asynchronous subcontext (physics 048e5f5, physics PR #80), which is what row 03's not-red control predicted. With the wait every Y right (0 wrong of 3072) in both barrier modes AND without the wait 3072 of 3072 wrong, so the control is red at last and the event proof holds | PASS (8 checks), 2026-10-25T00:35Z on `c5/isolation` 02db88d33 with the pin enforced |
23| (chip, pending slot) | per-queue timestamps across 3 runs without the wait, then overlap ratio solo vs pair (both barrier modes), serial red check, event + no-wait control, on the train tip | NOT RUN (needs an exclusive window; the C4 overlap ratio is still unmeasured) |
24
25Chip command (GB10 lock; timings need an exclusive window):
26`build/gpu_streams_test` (sets AIEN_OMEGA_GPU_CHANNELS=2 itself). PASS needs: pair / (solo A + solo B) < 0.75, the
27same two spins in one list on one queue >= 0.75 (red check), every Y right with the wait, and at least one Y wrong
28without it (negative control).
29
30Update 2026-10-22 (after an independent review): the C4 code continues on branch c5/isolation, which contains this branch.
31There a launch that waits always gets the full WAIT_FOR_IDLE + invalidate after the wait, a list with waits is refused by
32plain submit and runs only in submit_pair with the list it waits on, and the chip test checks both refusals. The chip
33receipt for C4 will be taken on c5/isolation; merge that branch, not this one alone.