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 / dnn-activations / CHIP.md
| 1 | # Activation chip qualification: NOT_RUN |
| 2 | |
| 3 | No GPU execution was authorized for this slice. Host simulation and successful |
| 4 | encoding are not hardware qualification. Do not run this procedure from an agent |
| 5 | session without a current operator-authorized exclusive GB10 window. |
| 6 | |
| 7 | ## Prerequisites and safety |
| 8 | |
| 9 | The operator owns GPU scheduling and service coordination. Follow the current |
| 10 | GPU-window authorization procedure, including an exclusive window and a fresh |
| 11 | live-service check. A lock-file state is not permission. Do not disturb serving |
| 12 | ports, modules or watchdogs; do not use pkill/killall. If the required window is |
| 13 | not available, record NOT_RUN and stop without opening the device. |
| 14 | |
| 15 | Use the exact candidate commit and the seeded compiler/bridge pinned by |
| 16 | `om/units.sh`. Record `git rev-parse HEAD`, `uname -a`, the compiler SHA256, |
| 17 | bridge revision, GPU/driver identity and window authorization in a new dated |
| 18 | evidence directory. Never overwrite historical evidence. The supported chip is |
| 19 | GB10 sm_121 with the repository's supported open driver version. Stop on a |
| 20 | mismatch rather than widening the qualified-chip table. |
| 21 | |
| 22 | ## Host prerequisites (no device access) |
| 23 | |
| 24 | ```sh |
| 25 | bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 make -j3 test-gpu-dnn-activations test-gpu-dnn-activations-mutants |
| 26 | bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 make -j3 build/gpu_dnn_activations_chip_test |
| 27 | ``` |
| 28 | |
| 29 | Set the compiler/bridge environment exactly as described in README.md before |
| 30 | running the mutation target. The normal host executable cannot enter chip mode. |
| 31 | The separate chip executable requires `--chip`. Both link session wrappers; |
| 32 | only the explicitly compiled chip runner in `--chip` mode forwards those wrappers |
| 33 | to the real session functions. Under `--sim`/`--quick`, any call to session |
| 34 | open/lock/unlock/free or allocation aborts before forwarding. Only the separate |
| 35 | explicit `--shell-contract` mode uses an isolated fake backend to test NULL and |
| 36 | non-NULL open semantics; it never enters the real driver. |
| 37 | |
| 38 | ## Operator-only chip command |
| 39 | |
| 40 | Only after checking the authorization at the point of execution: |
| 41 | |
| 42 | ```sh |
| 43 | taskset -c 10-14 nice -n 10 ./build/gpu_dnn_activations_chip_test --chip |
| 44 | ``` |
| 45 | |
| 46 | Capture stdout, stderr, exit code and the exact command in the new receipt. |
| 47 | Expected exit code is 0. Expected final line is: |
| 48 | |
| 49 | ``` |
| 50 | dnn-activations chip: PASS (4 operators, 3 types, tails, independent double references, refusal-before-open, wrong-result control) |
| 51 | ``` |
| 52 | |
| 53 | The runner exercises all four operations and three storage formats with counts |
| 54 | 1,2,7,31,32,33,64,65,513,65535. It includes both signed zeros, positive/negative |
| 55 | small values, positive/negative saturation and largest finite storage values. |
| 56 | Each launch compares f32 output with the independent double reference under the |
| 57 | README tolerance. A deliberately wrong reference must disagree. Refused shapes |
| 58 | are checked before valid launches. Any failed value, nonfinite output, nonzero |
| 59 | exit, timeout, device fault or sentinel failure is FAIL, not a reason to loosen |
| 60 | tolerance. Stop; preserve the receipt and diagnose before any authorized rerun. |
| 61 | An interrupted/killed run is INCONCLUSIVE, not PASS. |
| 62 | |
| 63 | This command's correctness sweep does not measure performance. It does not |
| 64 | qualify maximum-count allocations, every finite input, other GPUs, every driver, |
| 65 | or whole-model inference. Record those as NOT_RUN. No merge/deployment/status |
| 66 | upgrade follows automatically from a successful chip run. |