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

branch main Branches Tags History

CUDApp / evidence / MERGE-DESK-NATIVE-TEARDOWN-20261024 / README.md

64 lines · 3853 bytes Raw Blame History Rendered
1# PR 67 teardown retry candidate
2
3Refs CUDApp [#65](https://github.com/aien-dev/CUDApp/issues/65) and
4[#67](https://github.com/aien-dev/CUDApp/pull/67), including review
5[5637134696](https://github.com/aien-dev/CUDApp/pull/67#pullrequestreview-5637134696).
6
7This is an **unqualified source candidate**, based on PR 67 head
8`5e037c7e3d0226abadaa10af9d44bc6339109b3f`. The candidate source and test revision
9is `ff5b4f9f1b13cffff2669e8207fe38cb5831366f`. Native compilation, native test
10execution, GPU execution, model inference and deployment are **NOT_RUN**.
11
12## Repair and review
13
14An unsuccessful `mapdrop` leaves its mapping handle owned. The old `nvstop`
15cleared the BAR handle despite refusal and marked the context closed even when
16channel or buffer mappings remained. A later `nvstop` could consequently report
17success without retrying cleanup.
18
19The repair records a distinct phase after descriptor closure, retains failed
20mapping handles and retries only CPU mapping cleanup in that phase. It preserves
21the sticky fault and retires each descriptor after one close attempt, including
22close errors. No RM/UVM call or descriptor close is repeated after phase 1.
23
24An independent source review traced normal cleanup, each mapping refusal,
25driver teardown refusal and close-error paths against the compiler's mapping
26semantics. It found no additional blocker in the runtime change. This review
27is source analysis, not a signed supported-host qualification or native test
28pass. Its suggested live-driver phase refusal check was added to the fixture.
29
30The compiler source contract was checked at Omega
31`d7390d88d07dbf48cfbb0583070599c350f814d3`, `seed/omc/omc.om`: unsuccessful
32`munmap` returns without clearing the live mapping slot. Invalid or stale
33handles trap and are not used as a substitute for the syscall refusal case.
34
35## Verification recorded here
36
37| Check | Result | Scope |
38| --- | --- | --- |
39| Shell syntax | PASS | `sh -n tests/speculation/run-teardown-host.sh` |
40| Baseline and repaired source-unit composition | PASS | Extracted the actual composer from the tracked shell script; did not compile either unit |
41| OS-effect isolation guard | PASS | Both composed units accepted; an appended unbound `devctl` rejected in each |
42| Whitespace check | PASS | `git diff --check origin/experiment/27b-adaptive-sizing HEAD` |
43| Native host test | NOT_RUN, exit 77 | Workspace is x86_64; no runnable pinned AArch64 compiler or emulator |
44| Required legacy host suite | FAIL, exit 2 | `make -j2 OUT_DIR=build/teardown-review test`; existing unconditional AArch64 assembly at `src/omega_blackwell_engine.c:393,558` is rejected on x86_64 |
45| Already-started legacy mutation target | PASS, 49/49 killed | Separate legacy host target, not qualification of the native repair |
46| GPU/model/deployment | NOT_RUN | No device access or runtime activation |
47
48`full-host.log` retains the complete failing host-suite output. The full host
49suite ran against the same runtime change; later commits only adjusted the
50test orchestration, added a fixture assertion and updated documentation.
51`source-composition.json` records the exact units' hashes and guard exits.
52
53## Required supported-host step
54
55Follow [TEARDOWN-HOST.md](../../docs/speculation/TEARDOWN-HOST.md) on Linux
56AArch64 using the pinned compiler. The original source must compile and fail
57by the intended assertion; the repaired source must compile and pass. A
58compiler error, trap, timeout or unsupported-host skip is not a pass. Preserve
59the produced source units, ELF files, compiler logs, stdout/stderr and hashes.
60
61The current candidate must remain draft/unqualified until that step and all
62existing review and signed integration gates are satisfied. Older hardware
63receipts cannot qualify this changed source, and the synthetic fixture does
64not qualify 27B inference or production activation.