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

[CUDA-MISSION] Qualify unchanged binaries on GB10, AMD and Intel and package evaluation release

Open · #186 · open 2026-10-29 12:15 UTC

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

drakestapleton wrote on 2026-10-29 12:15 UTC

Parent: #183. Owns the integration runner and C3 GB10 / C4 AMD / C5 Intel / C7 evaluation receipts; backend implementation remains #40/#41, ABI Bridge #42, translator #185. C6 application semantics remain #76 plus the traced runtime profile.

Integration/verifier prompt

Build one manifest-driven seeded .om acceptance runner, separate from implementation oracles. Proposed interface to implement:

build/cuda-compat-check --manifest <profile.json> --gate <C0|C1|C2|C3|C4|C5|C6|C7> --out <new-evidence-dir>

The command does not exist yet. Its implementation PR must publish exact compiler/build/run commands and a documented nonzero result for missing prerequisites. Reuse #88/#90/#91's fresh-checkout and release infrastructure; do not clone that work.

Required evidence

  • Application and all device-payload hashes before/after each run; library/compiler/source/backend dependency identities. Reject patching, relinking, rebuilding or profile changes between vendor runs.
  • Separate ARM64 GB10 artifact from x86-64 cross-vendor artifact. C4 includes physical x86-64 NVIDIA reference and AMD runs of identical bytes. C5 reuses those x86-64 bytes on Intel. Platform changes are explicit, never hidden through emulation.
  • Loaded library paths/hashes, external dependencies, physical GPU identity and backend submission/completion. CUDApp's existing zero-cuda gate checks absence of dependency names and is scoped to its native runtime; the compatibility suite needs a separate identity-based gate that accepts our genuine replacement named libcuda.so.1.
  • Device-access-denied/removed-backend negative control must prevent PASS. No software ICD, CPU fallback, remote GPU or vendor libcuda forwarding may satisfy a local physical target row. Positive outputs alone are insufficient.
  • Exact integers, declared floating comparisons, full launch tails, repeated context lifecycle, resource ownership, synchronization, error propagation and unsupported-case handling as applicable.
  • Wrong kernel arithmetic, wrong target, wrong replacement-library hash, stale artifact/compiler pin, fake-success stub and omitted synchronization controls. Use isolated bounded tests; do not deliberately hang the shared serving GPU.
  • Final tested integrated SHA plus independent verifier identity, raw outputs/exits and immutable evidence directory. Requalify executable-input changes.

Per-process launch and packaging

swap/cudapp currently selects a library directory with LD_LIBRARY_PATH; its run path checks directory existence, so a missing file can permit fallback. Harden the runner/launcher to require the exact replacement file/architecture and verify which library was loaded. Test direct/dlopen/versioned lookup, RPATH/RUNPATH interaction, subprocess inheritance, missing library, wrong host ABI and refusal. Unsupported loader situations get a clear error. Use process-scoped selection; no system ldconfig, kernel swaps or firmware changes for these gates.

Retain fake-root swap tests as packaging tests. Add real-ELF loadability and process-provenance checks. A fake library text file does not qualify installation. Publish build-from-source instructions, pinned dependencies, support/refusal matrix, license/provenance inventory and launch/undo instructions. Existing mixed file licenses and proposed ownership decisions must be recorded; no relicensing.

Performance and release gates

After correctness: within-device reference versus replacement, cold initialization/JIT, warm runs, copies, synchronized kernel/end-to-end time and memory. Pin workload/precision/power settings and report raw samples, dispersion and slower results. No fabricated speedup or calendar estimate. External engineer reruns from clean checkout on named hardware.

Checklist

  • Runner and failure controls implemented; no fake PASS for NOT_RUN.
  • C3 physical GB10 receipt.
  • C4 identical x86-64 binary/module on physical NVIDIA and AMD.
  • C5 same artifact on physical Intel.
  • C6 application receipt linked from #76/runtime work.
  • C7 external reproduction, packaging and performance evidence.

Individual gates may complete separately. This issue stays open for remaining required rows; hardware absence is BLOCKED_HARDWARE with the precise missing runner.

Delivery and closure

Follow mission #183, current repository instructions, latest issue comments and crumbs. Claim paths before work; reuse existing owners and preserve existing code locations. First-party logic and semantic tests use seeded .om. Open draft PRs with actual changes, dependency pins and behavioral red/green evidence. Require independent review of final integrated code and immutable commands, exits, source/compiler/artifact hashes. Host/emulator/physical results are distinct. No auto-close from a source-only PR or change to live services/driver state.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:21 UTC

Recovered GitHub comment. Original comment 6507845220

CudaProfile: the C0 manifest landed on CUDApp feat/cuda-c0-profile @ 94f225d1 (no PR yet). It is the TSV compat/cuda/profile-c0-<isa>-v1.tsv, not JSON. The admission engine is the seeded compat/cuda/c0_check.om.

  • check PROFILE EXE PTX RUNISA exits 0 PASS, 1 REFUSED (one line per reason), 2 usage, 3 IO.
  • runner rows carry AVAILABLE_NOT_RUN / BLOCKED_* states and never PASS.

The proposed build/cuda-compat-check --manifest … --gate C0 can wrap it directly. This is PROPOSED; I did not implement it here.

Sign in to comment