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 / codegen-tc-host-20261106 / README.md

80 lines · 4158 bytes Raw Blame History Rendered
1# TC host computation cutover — 2026-11-06
2
3IMPLEMENTED on base `feat/omega-codegen-tc` at `57b197495671`.
4No public ABI or instruction-generation change. The default strong entry
5`omega_tc_host` owns admission, resource queries, FP32 scaling, BF16 RNE,
6four-element permutation and weight conversion. The C oracle is default-OFF
7behind `CUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST`.
8
9The BF16 rounding implementation is the existing canonical
10`om/numeric/numeric.om` from `feat/numeric-om` (`1b78bfe99aba`), not a third
11rounding algorithm. `tch_scale` performs exact power-of-two scaling using integer
12FP32 classes. NaNs are compared by class; signed zero and all finite values are
13compared bitwise. The C shell only marshals complete four-element groups.
14
15Compiler: seeded `omega-mv e5b32567`, SHA-256
16`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`.
17The converter/frontend pins in `om/units.sh` are unchanged.
18
19## Commands and observed results
20
21Every runtime command below uses this prefix (no GPU devices are visible):
22
23```
24bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10
25```
26
27* `make -s -j3 test-codegen-tc-host`: rc 0,
28 `TC-HOST-DIFF PASS cases=988323`; red comparison returns 1 at case 1 and
29 the enclosing gate prints `TC-HOST-RED PASS`.
30* `env OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc OMEGA_BRIDGE=~/work/cudastack/omega-bridge python3 tests/codegen_tc_host_mutants.py`:
31 rc 0, `TC-HOST MUTANTS PASS (8 killed)` and `TC-HOST STRONG-LINK PASS`.
32* `make -s -j3 test-codegen-tc-host-cubin`: rc 0,
33 `TC-HOST-CUBIN-IDENTITY PASS cases=25`. Full container bytes are compared
34 for every mutant selector and both TC2 epilogues/direct modes.
35* `make -s -j3 test-codegen-tc-sim`: rc 0, final `GPU_PFGEMM: PASS`;
36 TC probe/bandwidth, peak, TC GEMM and TC2 prefill simulator checks pass.
37* `make -s -j3 test-codegen-tc`: rc 0,
38 `CODEGEN TC DIFF PASS (180517 cases, 52380 matching refusals)`;
39 the existing record-flip negative control was caught. This enumerates the
40 family instruction/encoded-byte differential, separately from the host query
41 partition and the full-container identity gate.
42
43Admission partitions derive from each source predicate: accepted K multiples,
44shape/warp choices, mutant selectors, TC2 epilogue/direct/AQN, the strict output
45bound and alignment. Each scalar axis also receives 0, UINT32_MAX and the
46listed v-1/v/v+1 transition values. Conversion covers both zeros, subnormal
47endpoints, normal endpoints, overflow, infinities, quiet/signaling NaNs and
4865536 deterministic bit-pattern groups with untouched-tail checks.
49
50| Omega mutant | Verdict |
51| --- | --- |
52| K lower bound 128 → 256 | KILLED |
53| TC K ceiling 32768 → 16384 | KILLED |
54| TC2 K ceiling 16384 → 8192 | KILLED |
55| strict output bound >= → > | KILLED |
56| shared-byte multiplier 4096 → 2048 | KILLED |
57| weight shift 4 → 3 | KILLED |
58| scale exponent adjustment 64 → 63 | KILLED |
59| permutation slot 2 → 1 | KILLED |
60
61The unmodified binding passes before mutation. Converter/link failures are not
62kills. The link control removes the implementation symbol and requires an
63unresolved `omega_tc_host`; there is no weak fallback.
64
65## Qualification and chip runbook
66
67Host differential, simulator and representative cubin identity: PASS.
68Chip / live RM / VFIO / hardware qualification: NOT_RUN. No service or driver
69was touched. These host results do not qualify the chip.
70
71After explicit operator authorization of an exclusive GPU window, run the
72existing `gpu_tc_peak_test`, `gpu_tcgemm_test`, and `gpu_pfgemm_test` hardware
73modes under the current window procedure, comparing the same generated kernels
74and recording the source revision and device receipt. Do not run hardware modes
75inside the host sandbox or infer authorization from this runbook. Full `make
76test` remains the integrator's gate.
77
78Wolfram constants checked with `WolframLanguageEvaluator`:
79`{2^64,2^23,2^31,16^^7fffffff,16^^7f800000,16^^7fff,16^^40,2^23,16*128*2,2*16*128,2^23,127-126+64,16^^ffffffff}`
80→ `{18446744073709551616,8388608,2147483648,2147483647,2139095040,32767,64,8388608,4096,4096,8388608,65,4294967295}`.