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
CUDApp / evidence / attn-any / 2026-11-06 / README.md
| 1 | # Any-shape attention host evidence — 2026-11-06 |
| 2 | |
| 3 | Status: IMPLEMENTED; host/simulator EXERCISED as recorded below. Hardware QUALIFIED: NOT_RUN. MERGED / DEPLOYED: NOT_RUN. This directory records selected terminal output, not an invented raw transcript. Home paths are rendered as `~` in this receipt. |
| 4 | |
| 5 | Source: branch `feat/attn-any`; attention implementation `06b2a82`; simulator predicate repair `732e10a`; prerequisite generic replay `22ebf8f`. Compiler omega-mv `e5b32567`, omc SHA256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. New API and kernel documentation: `om/attn-any/README.md`. Draft PR: https://github.com/aien-dev/CUDApp/pull/282. |
| 6 | |
| 7 | ## Seeded generation — PASS |
| 8 | |
| 9 | Command (rc 0): |
| 10 | |
| 11 | ```sh |
| 12 | taskset -c 10-14 nice -n 10 env \ |
| 13 | OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc \ |
| 14 | OMEGA_BRIDGE=~/work/cudastack/omega-bridge sh om/units.sh |
| 15 | ``` |
| 16 | |
| 17 | Final line: `wrote checked portable Omega units to .../lanes/Attention/src`. |
| 18 | |
| 19 | ## Predicate regression — red then green |
| 20 | |
| 21 | Command: `taskset -c 10-14 nice -n 10 make -j3 test-sim-predicates`. |
| 22 | |
| 23 | Before the simulator repair: rc 2, final test line `warp-sim predicates: FAIL`. |
| 24 | After the repair: rc 0, final test line: |
| 25 | |
| 26 | ```text |
| 27 | warp-sim predicates: PASS (masked LDG/ST, unmasked negatives, guarded SHFL) |
| 28 | ``` |
| 29 | |
| 30 | The regression checks masked lane memory operations against a one-word allowed range; deliberately unmasked LDG and STG must be rejected by the memory checker. Guarded SHFL must update only guarded destination lanes but can source a guard-inactive lane's pre-write register value. |
| 31 | |
| 32 | ## Existing simulator consumers — PASS |
| 33 | |
| 34 | Job `bg_441`, rc 0, measured wall time 1279.14 seconds. Commands: |
| 35 | |
| 36 | ```sh |
| 37 | taskset -c 10-14 nice -n 10 make -j3 \ |
| 38 | test-gpu-decode-attn test-gpu-router test-gpu-bf16-gemv \ |
| 39 | test-gpu-fp8gemm test-gpu-cmdlist test-gpu-decode-attn256 test-gpu-gdn \ |
| 40 | build/gpu_gdn_multi_test build/gpu_exact_head_test |
| 41 | taskset -c 10-14 nice -n 10 build/gpu_gdn_multi_test --sim |
| 42 | taskset -c 10-14 nice -n 10 build/gpu_exact_head_test --sim |
| 43 | ``` |
| 44 | |
| 45 | All nine existing simulator consumers found by include/dependency search passed, including their existing negative controls. No existing target depended on the incorrect unconditional default-op execution. Selected final simulator lines: |
| 46 | |
| 47 | ```text |
| 48 | gpu_router_test: 15 checks, 0 failed: PASS |
| 49 | gpu_bf16_gemv_test: 23 checks, 0 failed: PASS |
| 50 | gpu_fp8gemm_test: 21 checks, 0 failed: PASS |
| 51 | sim: 74 checks, 0 failed: PASS |
| 52 | gpu_decode_attn256_test: 14 checks, 0 failed: PASS |
| 53 | gpu_gdn_test: 46 checks, 0 failed: PASS |
| 54 | gpu_decode_attn_test: 12 checks, 0 failed: PASS |
| 55 | gpu_gdn_multi_test: 14 checks, 0 failed: PASS |
| 56 | gpu_exact_head_test: 9 checks, 0 failed: PASS |
| 57 | ``` |
| 58 | |
| 59 | ## Full host gate — NOT_RUN here |
| 60 | |
| 61 | Main's updated full-suite policy directs lanes that have not started `make test` to skip it because concurrent lanes overload the shared build cores. Integrator owns the deadline-free full gate on `integ/omega-cuda-stack`, draft PR #280. No `CUDA++ HOST TESTS PASS (...)` line is claimed by this lane. |
| 62 | |
| 63 | ## Chip — NOT_RUN |
| 64 | |
| 65 | No GPU window authorized; no chip execution performed. Runbook: `om/attn-any/CHIP.md`. Simulator success is not chip qualification and does not upgrade the ROADMAP row. |
| 66 | |
| 67 | ## Attention reference, shape sweep and source mutants — PASS |
| 68 | |
| 69 | Job `bg_473` ran the following focused chain: |
| 70 | |
| 71 | ```sh |
| 72 | taskset -c 10-14 nice -n 10 env \ |
| 73 | OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc \ |
| 74 | OMEGA_BRIDGE=~/work/cudastack/omega-bridge make -j1 \ |
| 75 | test-gpu-attn-any-mutants test-gpu-attn-any test-runtime-api \ |
| 76 | test-runtime-portability test-runtime-api-semver |
| 77 | ``` |
| 78 | |
| 79 | Observed attention output: |
| 80 | |
| 81 | ```text |
| 82 | attn-any mutant KILLED: mask |
| 83 | attn-any mutant KILLED: group |
| 84 | attn-any mutant KILLED: normalize |
| 85 | attn-any mutant KILLED: tail |
| 86 | attn-any mutant KILLED: refusal |
| 87 | attn-any source mutants: PASS (5 killed after successful generation) |
| 88 | attn-any host+warp-sim: PASS (reference, shape sweep, refusals, wrong-mask control) |
| 89 | ``` |
| 90 | |
| 91 | The chain reached and then failed `test-runtime-api` (overall rc 2, measured |
| 92 | wall time 795.76 seconds). The manifest's version constants were stale at 13 |
| 93 | while its ABI line/header were 0.14.0, and the docs lacked the checker's |
| 94 | inline-code mention of the codegen export. Both registration defects were |
| 95 | corrected; the attention implementation and passing attention checks did not |
| 96 | change. The remaining API/portability targets are exercised separately. |
| 97 | |
| 98 | ## Runtime API, portability and semver — PASS after repair |
| 99 | |
| 100 | Job `bg_504`, rc 0, measured wall time 990.47 seconds: |
| 101 | |
| 102 | ```sh |
| 103 | taskset -c 10-14 nice -n 10 make -j1 \ |
| 104 | test-runtime-api test-runtime-portability test-runtime-api-semver |
| 105 | ``` |
| 106 | |
| 107 | Selected final lines: |
| 108 | |
| 109 | ```text |
| 110 | RESULT: PASS (runtime API 0.14.0: 307 functions, 48 structs, 465 fields, 240 constants match the headers; surface 744 names, 197 INTERNAL) |
| 111 | RESULT: PASS (every negative control was caught) |
| 112 | PASS: 152 rows, every omega_gpu_* / omega_blackwell_* / omega_bw_* / omega_ampere_* file in src/ has one and the rows agree with the includes |
| 113 | ALL CONTROLS BEHAVED AS REQUIRED |
| 114 | RESULT: PASS (version 0.13.0 -> 0.14.0; the entry changes need MINOR) |
| 115 | ``` |
| 116 | |
| 117 | No attention implementation changes occurred between its passing shape/mutant |
| 118 | checks and this documentation/manifest registration repair. |