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.
fix(runtime): snapshot command-list lifetime under the session lock
closedf129b35ca048cade #174 · opened 2026-10-28 18:35 UTC · closed 2026-10-29 02:18 UTC
Imported from GitHub aien-dev/CUDApp#174, by drakestapleton
Base c6977b4906229fe83f41103b7eff65b64a0986d6 · Head 8cd1c912e8c7a68b7adcca75c6f71d1652401a54
drakestapleton wrote on 2026-10-28 18:35 UTC
Executed red-before evidence
Base: c6977b4906229fe83f41103b7eff65b64a0986d6 (#169). Regression-only head 3a3cd76f738967a133007da66807986431e91564 left production unchanged. Its tested synthetic merge 504197eec17f154502361af8cc32d361a9ce5f45 has the identical tree 1d3c026117436bc6ab56eca0f2be76a0bd451b61.
Existing GitHub-hosted ARM make testjob 123021914410 completed with the intended failure at 18:49:38 UTC:
Both new close-before-lock and recovery-before-lock cases failed exactly the real omega_gpu_cmdlist_owner and omega_gpu_cmdlist_add usability assertions.
The later-close stale-list refusal control passed.
Native suite: 24 passed, 2 failed. Make failed at test-gpu-native-runtime; this is not a full-suite PASS.
Minimal correction, executed green-after evidence
Corrected source head: 05be6d98211d7fdc043d173da8f661bbb51e0138. The second commit moves only the two existing epoch/recovery-generation captures into the existing successful-create block while the session lock is held. It does not replace policy or add a production test hook. History is preserved.
A permitted normal close or recovery could finish between the old pre-lock capture and acquisition; creation then allocated on the reopened session but returned an immediately stale list. docs/runtime/API.md says these calls self-lock and must be called without that lock. The new captures bind to the session that allocated the buffers. A genuinely later close still invalidates the list.
Independent read-only review found no blocker in the tests or correction, including failure cleanup. Hosted ARM CI on the corrected source is now GREEN: job 123031642436 completed at 19:11:11 UTC with all three new controls passing, native fixture 26 passed, 0 failed, and CUDA++ HOST TESTS PASS (52 targets). All 14 visible checks and 9 workflows succeeded. The tested synthetic merge 6112ba2128676b403cee6ba8bc7856d724e6032b has the exact corrected-source tree.
Current filing head: 8cd1c912e8c7a68b7adcca75c6f71d1652401a54 adds only the required source-bound host receipt. It does not relabel earlier runs as execution of this filing commit. Its own complete CI is now GREEN too: job 123044991607 completed at 19:34:32 UTC, again with native fixture 26/0 and the 52-target aggregate. All 14 visible checks and 9 workflows succeeded. Tested synthetic merge c12dfcd4055d0356370fa2189106fc5296659604 and the filing head share tree 7a19c14162ec6dd84fec9904a9ad78daa8873e98. Code and tests remain unchanged from the first green source.
Local checks and limits
On Linux x86_64, strict gcc -std=gnu11 -O2 -Wall -Wextra -Werror -Isrc -fsyntax-only src/omega_gpu_cmdlist.c, both native-enabled and ordinary fixture syntax checks, and git diff --check exit 0.
Final-tree local make test and make -j2 all both exit 2 at existing ARM dsb assembly in the engine/submit sources. No unsupported architecture shim or gate weakening is used. Functional red/green evidence is from the separately identified hosted ARM runner, not local execution. The committed receipt preserves both outcomes, exact source hashes and the raw workflow links.
The existing fake-platform regression models a lock contender that executes real close/recovery before granting the creation lock. It checks owner/add usability and stale refusal, not actual multithreaded scheduling, submission completion or GB10 qualification. No GPU is opened by the fixture.
No public API, generated unit, encoder, artifact authority, qualification or production-activation change. No device, model, service, merge, deployment, settings or webhook operation. Connector commits are unsigned and have no DCO certification; maintainer signing gates remain intact. Keep draft for maintainer disposition and signing policy. These host results do not satisfy any separate required hardware qualification or authorize merge/activation.
Apply it
git checkout -b patch-f129b35ca048cadec6977b4906229fe83f41103b7eff65b64a0986d6
curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/f129b35ca048cade.patch | git am