Problem
src/omega_gpu_cmdlist.c uses conservative WFI/cache operations between dependent kernels. The API also permits independent records and several barrier policies. Reduce unnecessary synchronization only with explicit data and visibility requirements.
Scope
Add bounded read/write ranges and lifetime/alias information to supported records, conservatively treating unknown aliases as dependent. Plan barriers from hazards and the platform's cache contract. Reuse streams/events from #6 rather than inventing a competing queue API.
Acceptance
- Preserve the conservative scheduler as a comparison and fallback.
- Cover RAW/WAR/WAW hazards, overlapping subranges, cached CPU writes, code reuse, stale handles, buffer lifetime and independent operations.
- Validate producer-to-consumer output data on chip, repeated under scheduling/cache pressure, with removed-wait and removed-visibility mutants.
- Document which dependency each reduced barrier satisfies and the evidence for its ordering/progress behavior.
- Compare barriers, GPU/host time and complete token results through the common benchmark.
- No barrier reduction becomes default from independent-kernel timing alone.
Research: Driver Command Streams (https://doi.org/10.1145/3832810.3832812). It motivates command-level instrumentation and does not prove CUDApp WFI removal is correct.
Evidence and closure
Review baseline: 232332422bfdc31c8918085b50f13c1e18ab702e; re-inspect the current tree and reuse existing work before editing. Coordinate with #5 and #6 and the serving/chip-window owner; host work can proceed independently of hardware scheduling. This issue does not authorize interrupting the live motor or switching kernel drivers.
Publish exact source/pin SHAs, build and binary hashes, commands, exit codes, hardware/driver identity, raw logs and relevant negative controls under evidence/. Separate host, simulator and GB10 results. Hardware acceptance needs a real coordinated GB10 run on the final integrated artifact. Keep CUDA userspace dependencies out of the deployed runtime. Do not close on a branch push, simulator-only hardware result or PR merge alone. Experimental issues may close with a reproducible negative result and explicit decision; do not claim an optimization shipped unless its integration gates pass.
CUDA-LEARN integration addendum
Generated transformation dependency contract
CUDA-LEARN #52 adds proposal and validation clients of this existing dependency owner. #54 must declare affected read/write ranges, alias relationships, visibility and synchronization preconditions for each transformation; #57 must include any resulting conversions/workspaces/barriers in full-graph measurement.
Keep the existing conservative algorithm as a qualified .om option while final active implementations follow aien-dev/omega-mv#599. The phrase fallback in the original issue means a qualified algorithm/artifact, not indefinite retention of legacy C or another runtime.
#55 supplies bounded schedule-stress evidence. Require a clear distinction between a removed-wait mutant detected by a test and a proof that a proposed weaker barrier satisfies the memory model. A clean stress campaign does not prove race freedom. Do not permit a proposer to mark dependent launches independent merely to improve timing.
Add contract-change invalidation: any changed buffer extent, ownership, cache policy, code address reuse, launch grouping, target profile or compiler realization forces rechecking affected dependency records. Unknown aliases remain conservatively dependent. Control-flow and intermediate-buffer elimination must preserve final observable state as well as immediate outputs.
Retain #6's stream/event API and #11's recovery boundary. No new queue API, unmanaged hardware window or live driver change is required by the learning experiments.