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 / om / engine / CHIP.md

60 lines · 3355 bytes Raw Blame History Rendered
1# om/engine and om/qmd on the chip
2
3Status: chip tier NOT_RUN. Every result for these units so far is host-only
4(fake backends, the host simulator and the C-oracle differential). Host results
5do not qualify the GB10.
6
7## What moved
8
9`om/engine/eng.om` (unit `eng`, ABI `omega_eng(result, m[24], 24, w[16], 16)`,
10`m[0]` = op 0..27) owns the branches of the engine phase machine, wait step,
11job validation, memory reserve, cache rounding, serving bounds, poison match,
12cleanup, lifecycle, requalify and visibility predicates, submit timeouts, the
13M16 release header, the M16 wait failure class and the platform checks.
14`om/qmd/bw_qmd.om` (unit `bw_qmd`) packs the Blackwell QMD and constant bank.
15
16The C shells keep every side effect and its order: ioctls, MMIO reads,
17doorbell writes, pushbuffer stores, clocks, allocation, free and channel calls.
18They ask the unit what to do next and do it.
19
20Each moved decision has a default-OFF switch that restores the C oracle:
21`CUDAPP_MIGRATION_PENDING_C_<PART>` with PART one of ENGINE, WAIT, MEMRESV,
22MEMCACHE, SERVING, M16NATIVE, M16WAIT, PLATFORM, SUBMIT, BWENGINE, REQUALIFY,
23CONCURRENT, VISIBILITY, LIFECYCLE, plus `CUDAPP_MIGRATION_PENDING_QMD` for the
24QMD packer. QMD now uses the same `bw_qmd.om` source in hosted and
25`OMEGA_GPU_NO_POSIX` builds. The latter calls the checked caller-stack native
26root `omega2_bw_qmd`; it no longer selects the C QMD body automatically.
27Other engine parts retain their existing freestanding boundaries.
28
29## Why the host differential is not chip evidence
30
31The differential (`make test-om-eng-diff`, 44584 records) proves the unit
32returns the same decision as the C oracle for the same inputs. On the chip the
33inputs come from real MMIO reads, real semaphore values and real clocks. The
34timing interleavings a GPU produces (late progress, a marker that changes
35between two polls, a release written after the visibility barrier) are only
36modelled by the fake backends.
37
38The M16 wait header (`m16/m16_gpu_wait.h`) used to say that physics code
39cannot include Omega code. The M16 programs now link `src/cudapp_om_eng.c`.
40A chip run is the first place that change meets the real driver.
41
42## Chip runs needed to qualify
43
44Each needs an authorized exclusive GB10 window under the current procedure.
45None of these was run for this change.
46
47| Gate | Command | Shows |
48|---|---|---|
49| M16 requalification | `tests/run_m16_requalification.sh` | release header, withheld doorbell and requalify predicates against the real channel |
50| NVRM lifecycle | `tests/run_nvrm_lifecycle_gates.sh` | churn floor 274877906944 B, high-water cap 2147483648 B, cleanup predicates |
51| Submission visibility | `nvrm/submission_visibility_gates.c` (no run script) | visibility predicates |
52| M16 concurrent | `m16/m16_concurrent` (built by the requalification script) | withheld, parity, cross-talk, final-page and root-collision decisions |
53| Blackwell vector | `omega_blackwell_execute_vector` through the engine | phase machine, QMD packing and release words on sm_121 |
54
55For each gate, the qualifying evidence is a pass in the default build and the
56same pass with the matching `CUDAPP_MIGRATION_PENDING_C_<PART>` switch, plus a
57red control (a deliberately wrong unit answer) that the gate rejects.
58
59The four gate programs compile and link on the host with the default build
60(compile only, nothing run).