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 / om / attn-any / CHIP.md
| 1 | # Any-shape attention chip procedure |
| 2 | |
| 3 | **NOT_RUN. No GPU window is authorized by this PR.** Do not run the chip command |
| 4 | until Drake authorizes an exclusive window on the exact device and commit. |
| 5 | Do not acquire the chip lock, stop a service or change a gate on this lane's |
| 6 | authority. In particular, leave :18091, :18173–18178, PID 68451, omega-tool |
| 7 | services, NVIDIA modules and vfio untouched. |
| 8 | |
| 9 | 1. Have the operator apply the current exclusive-window/preflight procedure. |
| 10 | A free lock alone is not authority. Record UTC date, device identity, |
| 11 | driver/firmware state, branch/commit, compiler/bridge pins and authorization. |
| 12 | 2. Check that the host suite and source mutants passed on the exact commit. |
| 13 | Build `build/gpu_attn_any_test` with the documented pinned tools, on cores |
| 14 | 10–14 at nice 10 and at most -j3. Preserve build stdout/stderr and rc. |
| 15 | 3. Run `make doctor` under the authorization procedure. A refusal stops the |
| 16 | experiment; never change its gate. This runbook does not claim direct APIs |
| 17 | have the wrapper's driver/PCI admission checks. |
| 18 | 4. Only then run: |
| 19 | |
| 20 | ```sh |
| 21 | taskset -c 10-14 nice -n 10 build/gpu_attn_any_test --chip |
| 22 | ``` |
| 23 | |
| 24 | The command executes f32, bf16 and f16 attention against the independent double |
| 25 | host reference, including rectangular sequences, tails, causal modes and |
| 26 | GQA. The same wrong-mask negative control must disagree. Unsupported-shape |
| 27 | checks must return REFUSED before device open. Record complete output and |
| 28 | rc; expected final line: |
| 29 | `attn-any chip: PASS (reference, shape sweep, refusals, wrong-mask control)`. |
| 30 | 5. Collect telemetry only through the authorized procedure. Any launch failure, |
| 31 | timeout, mismatch, unwritten output or refusal is FAIL/INCONCLUSIVE, not |
| 32 | PASS. Do not lift the session's uncertain-completion latch. Preserve new |
| 33 | evidence under a fresh dated directory; never edit an old receipt. |
| 34 | 6. Return the device according to the window procedure. A chip result applies |
| 35 | only to the exact commit/driver/shape envelope exercised. It is not a |
| 36 | performance claim or exhaustive all-input numerical qualification. |
| 37 | |
| 38 | The CPU simulator's EX2/RCP are host oracles. The provisional error allowance |
| 39 | in README is not a measured hardware approximation bound. If chip error exceeds |
| 40 | the documented tolerance, fix/characterize the kernel rather than silently |
| 41 | loosening the gate. ROADMAP remains PARTIAL until a reviewed chip receipt |
| 42 | justifies a separate status decision. |