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/CUDApp/blob/main/evidence/C4-STREAMS/README.md # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / C4-STREAMS / README.md` 34 lines · 5388 bytes Raw Blame History Rendered 1 # C4: streams and events on the GB10 (docs/OMEGA.md row C4) 2 3 Row C4: two independent queues of the same work finish in under 0.75 of the sum of their solo times; an event wait 4 orders two dependent jobs, checked by data, on the chip. 5 6 What 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 | 05-chip-`20261027`-`51335f5`/ | chip, 10 fresh processes of the CI-built `gpu_streams_test` (sha256 `d4a194e4`…88c7, CI run `40434743675` at `51335f5`), `tools/c4_streams_chip.sh` under `/tmp/aien-gb10.lock` (one hold, no other GPU job), driver 580.173.02, host load average 8.3-11.1 (CPU not exclusive). Overlap pair / (A + B): default barrier 0.500 in 10 of 10, first_barrier_none 0.500 in 9 and 0.501 in 1. Red check (same two spins in one list on one queue): ratio 0.997-1.000 in 10 of 10, so it fails the 0.75 bar as it must. Event with the wait: 0 wrong of 3072 in both barrier modes, 10 of 10. NEGATIVE CONTROL without the wait: 3072 of 3072 wrong in both barrier modes, 10 of 10 (red) | PASS (8 checks) in 10 of 10 runs, 2026-10-27T02:55Z | 24 | 06-chip-`20261027`-`7f8eaea`/ | chip, 10 fresh processes of `gpu_streams_test` built in a fresh clone at `7f8eaea` (#113 merged with main `20bd490`, so the per-queue Q6 in-flight check from #121 is in the library; sha256 `f8b736da`…b2c7), `tools/c4_streams_chip.sh` under `/tmp/aien-gb10.lock` (one hold, 07:28:22Z-07:28:45Z), driver 580.173.02, BESIDE the live 35B on 18091 (health ok before and after, compute apps before and after: 79557 only; `context.txt`), host load average 29 (CPU not exclusive). Overlap pair / (A + B): default barrier 0.500 in 7, 0.498, 0.501, 0.502; first_barrier_none 0.500 in 9, 0.499; mean of the 20 = 0.500 (WolframLanguageEvaluator `N[Mean[o],4] -> 0.5`, range 0.498-0.502). Red check: ratio 0.998-1.019 (mean 1.0016), 10 of 10 fail the 0.75 bar as they must. Event with the wait: 0 wrong of 3072, 20 of 20. NEGATIVE CONTROL without the wait: 3072 of 3072 wrong in both modes, 10 of 10 (red). No REFUSED_BUSY. | PASS (8 checks) in 10 of 10 runs, 2026-10-27T07:28Z | 25 26 Chip command (GB10 lock; timings need an exclusive window): 27 `build/gpu_streams_test` (sets AIEN_OMEGA_GPU_CHANNELS=2 itself). PASS needs: pair / (solo A + solo B) < 0.75, the 28 same two spins in one list on one queue >= 0.75 (red check), every Y right with the wait, and at least one Y wrong 29 without it (negative control). 30 31 Update 2026-10-22 (after an independent review): the C4 code continues on branch c5/isolation, which contains this branch. 32 There a launch that waits always gets the full WAIT_FOR_IDLE + invalidate after the wait, a list with waits is refused by 33 plain submit and runs only in submit_pair with the list it waits on, and the chip test checks both refusals. The chip 34 receipt for C4 will be taken on c5/isolation; merge that branch, not this one alone.