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

Experiment: alternate KV traversal in GB10 prefill attention to improve cache reuse

Open · #23 · open 2026-10-22 17:08 UTC

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

drakestapleton wrote on 2026-10-22 17:08 UTC

Scope

Prototype cyclic versus forward/reverse alternating KV-tile traversal in src/omega_blackwell_codegen_pattn.* and omega_gpu_prefill_attn_api.* where compatible. Verify the current CTA/query-tile assignment produces the intended reuse pattern. Keep decode claims separate.

Acceptance

  • Preserve causal masks, sequence positions, page indexing and online-softmax semantics.
  • Test causal/noncausal supported shapes, partial tiles and KV sizes below/near/above the measured cache regime.
  • Measure numerical differences from changed reduction order; validate under the explicit numerical contract and include wrong-direction/mask mutants.
  • Compare latency and memory/cache measurements where available; mark unsupported counters unknown rather than inventing values.
  • Use repeated paired native GB10 runs with identical kernels except traversal changes where feasible.
  • Integrate only for shapes with a demonstrated benefit; a reproducible negative result is an acceptable experiment outcome.

Research: Sawtooth Wavefront Reordering (https://doi.org/10.1145/3818671.3818672). It studies GB10 prefill-like attention through CUDA/CuTile, not CUDApp direct SASS or single-token decode.

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.

No comments.

Sign in to comment