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 / docs / issues / D8-process-tax.md
| 1 | # D8: measure what a CUDA++ process costs beyond its own buffers |
| 2 | |
| 3 | Labels: D8 |
| 4 | |
| 5 | **The pain.** "The CUDA tax, which is 4.6 GB approximately per each model on a DGX spark." (r/LocalLLaMA). `docs/PAIN_POINTS.md` section 2.7. |
| 6 | |
| 7 | **What exists.** A CUDA++ process maps no CUDA library (Omega `evidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt`). |
| 8 | |
| 9 | **What is left.** Measure it: resident memory of `hello_gpu` before open, after open and after its buffers are allocated, and the GPU memory the driver reports for the process, so the overhead beyond the program's own buffers is a number. |
| 10 | |
| 11 | **Done when.** `hello_gpu` prints its own overhead line, and a chip receipt records it. |
| 12 | |
| 13 | **Command (on CUDApp#280).** `hello_gpu` prints the overhead line |
| 14 | (`examples/hello_gpu/README.md`, "D8"). `tests/d8_process_tax.om` (compiled by the pinned seeded omc with |
| 15 | `tests/d8_lib.om`) holds the bar, which was fixed before any chip run: |
| 16 | |
| 17 | - B1: the run passes. |
| 18 | - B2: there is exactly one D8 line, and its printed differences add up. |
| 19 | - B3: `VmRSS` read from outside during `--hold-ms` is within 4096 KiB of the line. |
| 20 | - B4: the driver reports the pid with a whole number of MiB. |
| 21 | - B5: TAX = max(0, open cost, resident beyond own buffers) + max(0, driver MiB × 1024 − own buffers KiB). |
| 22 | TAX must be ≤ 262144 KiB, which is 256 MiB. |
| 23 | |
| 24 | The bar is 17.1 times below the 4.6 GB in the quote (WolframLanguageEvaluator: `N[4.6*10^9/(256*2^20)] -> 17.136`). |
| 25 | Two negative controls run in the same lease. `--bug=short` must fail B1. `--d8-ballast-mib=512` must show at least |
| 26 | 524288 KiB of open cost and must fail B5. The verdict is PASS only when the main run passes and both controls are |
| 27 | caught. |
| 28 | |
| 29 | - `make d8-process-tax-dry-run` runs on the host only, with the devices hidden. It exits 0 when the simulator run, |
| 30 | the controls, the device-hidden refusal and the judge self-tests behave as specified. |
| 31 | - `make d8-process-tax` takes one `spark-window` lease (gb10 exclusive, 20 minutes, ledger DRA-158) and writes |
| 32 | `build/d8-process-tax/<UTC>/`. That directory holds the logs, the outside readings, `env.txt`, `lease.txt` and |
| 33 | `verdict.txt`. |
| 34 | |
| 35 | **Status.** The command is IMPLEMENTED and the dry run is EXERCISED on the host. The chip row is NOT_RUN. It waits for |
| 36 | CUDApp#280 and an authorized window, and no chip receipt exists yet. |