interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / evidence / C4-STREAMS / README.md

34 lines · 5388 bytes Raw Blame History Source

C4: streams and events on the GB10 (docs/OMEGA.md row C4)

Row C4: two independent queues of the same work finish in under 0.75 of the sum of their solo times; an event wait orders two dependent jobs, checked by data, on the chip.

What this branch adds:

logwhatresult
01-host-only.logcodegen + encode of both kernels and their mutants; wait_for refusalsPASS (5 checks), 2026-10-24T23:29Z on the train tip
02-sim.logwarp simulator: exact values in both scheduling orders, mutants caughtPASS (9 checks), 2026-10-24T23:29Z on the train tip
03-chip-values-20261022-f792cd1d.logchip, 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)
04-chip-values-20261025-048e5f5.logthe 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 holdsPASS (8 checks), 2026-10-25T00:35Z on c5/isolation 02db88d33 with the pin enforced
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
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

Chip command (GB10 lock; timings need an exclusive window): build/gpu_streams_test (sets AIEN_OMEGA_GPU_CHANNELS=2 itself). PASS needs: pair / (solo A + solo B) < 0.75, the 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 without it (negative control).

Update 2026-10-22 (after an independent review): the C4 code continues on branch c5/isolation, which contains this branch. There a launch that waits always gets the full WAIT_FOR_IDLE + invalidate after the wait, a list with waits is refused by plain submit and runs only in submit_pair with the list it waits on, and the chip test checks both refusals. The chip receipt for C4 will be taken on c5/isolation; merge that branch, not this one alone.