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

D1: refuse an allocation before it hangs the machine

Open · #8 · open 2026-10-22 15:05 UTC

Imported from GitHub aien-dev/CUDApp#8, by drakestapleton

drakestapleton wrote on 2026-10-22 15:05 UTC

Priority and execution ownership

Priority 2 safety prerequisite; reuse existing host allocation guard.

L386 (GPU qualification), existing developer-memory work. Host evidence already exists at evidence/dx/d1-memory/; remaining live chip budget needs a receipt.

Source draft

docs/issues/D1-memory.md at 232332422bfdc31c8918085b50f13c1e18ab702e

D1: refuse an allocation before it hangs the machine

Labels: pain-point, D1, good-first-issue

The pain. On the DGX Spark the CPU and GPU share one memory, and the machine has no swap. A memory spike does not end in an error message: "On unified memory a spike goes straight to a global OOM that hard hangs the whole box. No ssh, no ping, needs a power cycle." (github.com/sudoingX/dgx-spark-laguna, FINDINGS.md). docs/PAIN_POINTS.md section 2.1.

What exists. CUDA++ has no caching allocator: every buffer is an explicit allocation, so what a process holds is what it asked for. make doctor prints the shared memory and how much is free now.

What is left. In the Linux platform's allocation path (src/omega_gpu_platform_linux.c, hosted), refuse an allocation that would leave less than a reserve free on a unified-memory GPU. The refusal is a sentence: bytes asked, bytes free, the reserve, and what to do (free buffers, lower the batch, or set the reserve). The reserve has a default and one setting to change it.

Done when.

  • A host test with a fake /proc/meminfo shows the refusal text and that a smaller allocation still succeeds (seen failing first).
  • A negative control: with the check removed, the test fails.
  • A chip run on the Spark prints the live budget at open.

Acceptance gate binding

Host allocation-budget refusals and their negative control, plus live shared-memory budget at GPU open. Do not intentionally exhaust the serving machine.

The source draft may predate completed host work; inspect the existing implementation and receipts before claiming or assigning a rewrite.

Mandatory closure gate

Do not close from a branch push, a simulator-only result for a chip requirement, an agent summary, or a merged PR alone. Do not use auto-closing Fixes/Closes keywords in a PR until the full gate below is actually met.

  • Link the full tested source SHA for every affected repository and the integrated/merged SHA. If a rebase, pin change, or merge changes executable inputs, qualify the resulting exact commit again.
  • Link a committed public receipt and raw logs under evidence/: exact command and flags, compiler/tool and binary hashes, source/pin SHAs, machine/chip/driver identity, expected result and actual exit code.
  • All acceptance checks pass; relevant negative controls/mutants fail for the intended reason. No skipped/waived gate or retry-until-green.
  • Hardware rows have actual GB10 receipts in a coordinated chip window. Host/simulator tests remain separately identified and cannot satisfy those rows.
  • Required dependencies are complete, independent review is recorded, and the integration owner verifies the receipt against the final artifact before closing this issue.

Existing implemented pieces must be reused, not rewritten. A historical draft is provenance, not proof that its host work is still missing. Live execution, pinned CUDApp consumption, and the independent driver remain distinct claims.

Work graph

Priority anchor: https://github.com/aien-dev/CUDApp/issues/5

Scheduling/qualification prerequisites (reuse code already built; no extra worker):

No comments.

Sign in to comment