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-LEARN P1] Test native GPU candidates under bounded schedule perturbation

Open · #55 · open 2026-10-23 19:43 UTC

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

drakestapleton wrote on 2026-10-23 19:43 UTC

Parent: #52. Research snapshot: 2026-10-23.

Problem

Repeated correct outputs under one natural schedule can miss synchronization faults. The existing warp/IR simulator also cannot validate every emitted scheduling field. CUDA++ owns the encoder and can explore a bounded native perturbation mechanism without making NVBit or CUDA a deployed dependency.

This extends #13 repeatability and #22 encoded-code validation. #19 remains owner of inter-launch dependency/barrier changes; #6/#11 remain owners of queues, isolation and recovery. Do not remove production waits to make this experiment easier.

Scope

Begin with deterministic, small, already-qualified kernels and one supported perturbation scope. Establish a native stress method that changes timing while preserving the tested program's declared semantics. Test-only instrumented artifacts are separate from production artifacts and performance measurements.

The first gate is feasibility: identify a safe, bounded delay/control mechanism supported by the actual GB10 instruction set and native runtime. If no mechanism can be qualified without an unvalidated ISA extension, record that limit and deliver repeated-run testing only, explicitly labeled weaker.

Work

  1. Enumerate each kernel's memory effects and synchronization scopes from #35/#19 records. Declare coverage for threads, warps, CTAs, shared/global memory and asynchronous operations. Unknown scopes are not silently treated as checked.
  2. Generate bounded stress variants at supported instruction or scheduling points. Preserve branch offsets, live registers, predicate/reconvergence state, scoreboard dependencies and memory behavior. Validate the instrumentation itself against independent byte decoding and a golden instruction fixture.
  3. Run original and stress variants with frozen inputs, bounded workspace, completion deadlines and the existing uncertainty latch. Snapshot permitted outputs, guard regions and relevant state; never inspect unrelated process memory.
  4. Seed and record stress choices, selected scopes, run counts and any sampling omissions. Use multiple input families from #53, including cancellation, masks, tails and ties.
  5. Build known-bad controls by removing a required barrier/wait, changing visibility or altering a dependency. First show that the selected campaign detects an appropriate supported mutant. Never run unbounded or destructive fault experiments on the live service.
  6. Keep performance timings on clean uninstrumented artifacts in a separate measurement stage. Stress delays are not production latency.

Acceptance

  • Deterministic identity and replay of each stress campaign, with original/instrumented binary and launch digests.
  • Host tests validate transformation bookkeeping and refusal of unsupported sites.
  • Real GB10 receipts demonstrate detection of at least one relevant synchronization mutant within the qualified scope.
  • Correct baseline kernels pass the declared repeated-input campaign; all observed mismatches retain raw counterexamples.
  • Intra-warp, inter-CTA, async-copy or other uncovered cases are listed explicitly.
  • Timeout/uncertain completion follows existing session policy and never silently resumes GPU work.
  • Receipt vocabulary says tested determinism or observed nondeterminism. A clean campaign is never labeled proof of race freedom.

Research and proof boundary

RESOLVE combines timing perturbations, reduced-concurrency programs and proofs. Its published implementation uses NVBit on H100/sm_90 and has sampling and perturbation gaps, including intra-warp coverage. It does not establish CUDA-free sm_121 instrumentation. This issue adapts the testing principle only. Native GPU coverage must be measured locally; output determinism and formal race freedom are different properties.

Exit decision

Ship the bounded test capability if it detects the intended faults without compromising qualification. Otherwise publish a reproducible NO-GO/unsupported-scope result and retain existing checks. Neither outcome authorizes relaxing #16, #19 or #22.

Delivery contract

Final first-party implementation, tests, build and automation for this work must be seeded .om, following aien-dev/omega-mv#599. Existing C, Rust, Python, JavaScript and .osc implementations are migration inputs and comparison evidence, not permanent wrappers or fallbacks. Qualify each .om replacement, cut its consumers over, remove the replaced active implementation and dependency, and retain immutable history/receipts. A qualified baseline can remain an algorithm choice implemented in .om. Missing seed-language, host-service or compiler features go to their existing owners; do not invent a second compiler/runtime.

Reuse #5's canonical backend, #10's independent decoding, #15/#16/#17's test/numerical/measurement work, and existing memory/session/driver boundaries. Reconcile current main and active branches before coding. No NVIDIA userspace dependency in the final execution path. This finite research workstream does not supersede release priorities or authorize live-service replacement.

Publish exact source/compiler/runtime/model/target/config identities, candidate code and launch digests, commands, raw outcomes and expected-failure controls. Distinguish host, simulator, compiled native host, GB10 and integrated-consumer evidence. Missing hardware is NOT_RUN. Use existing reservations/quietlock and bounded memory; leave active GPU jobs alone. Closing requires the issue's stated gates on the final artifact plus independent review, or an explicit reproducible NO-GO for an experiment. Never close solely on generated code, a branch push, or a merged PR.

No comments.

Sign in to comment