interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

[OMEGA-TILELAB P0] Native .om tile scheduling and streaming reduction — GB10 evidence (idea only)

Open · #347 · open 2026-10-27 23:24 UTC

Imported from GitHub aien-dev/aien-architecture-mv#347, by drakestapleton

drakestapleton wrote on 2026-10-27 23:24 UTC

Scope revised 2026-10-27: Implement the generic mathematical idea of tile decomposition, on-chip data reuse, and associative streaming reductions natively in Omega. No TileLang code, syntax, runtime, dependency, or TileLang benchmark required. This supersedes this issue's original third-party comparison plan; issue history preserves it. This is a finite experiment, NOT A MASTER PLAN.

Goal

On the user's DGX Spark GB10, author a small .om tile program, compile and validate it using existing Omega semantics/checker2, run it using the existing CUDApp sm_121 path, and produce an independent numerical/experimental receipt. No new compiler, GPU session owner, or permanent foreign-language runtime.

Reuse

Wolfram mathematical motivation — models, NOT measured performance

For BF16 A/B, FP32 C, GEMM M=N=K=1024, a simple uncached logical-request model is:

naive_bytes = 4*M*N*K + 4*M*N
tile_bytes  = 2*M*K*Ceiling[N/BN] + 2*N*K*Ceiling[M/BM] + 4*M*N
staging_bytes = 2*stages*BK*(BM+BN)
accum_outputs_per_thread_proxy = BM*BN/threads

With BN=BM=64: naive 4100 MiB -> tiled 68 MiB (~60.3x fewer modeled requests); 128-square -> 36 MiB (~113.9x). These are not speedup claims, nor estimates against our already tiled CUDA++ kernels: caches, actual memory transactions, scheduling and register occupancy change physical costs.

With a hypothetical 48 KiB staging limit, 64 output values/thread accumulator proxy, BK=32 and 3 stages, 64×128 and 128×64 minimize this candidate set at 52 MiB logical requests and 36 KiB staging; physical GB10 feasibility and performance remain to be measured.

Streaming reduction property: for tile summaries (m,s,p) where m=max(x_i), s=sum(exp(x_i-m)), p=sum(v_i*exp(x_i-m)), combine two blocks with m=max(m1,m2), s=e^(m1-m)s1+e^(m2-m)s2, p=e^(m1-m)p1+e^(m2-m)p2. Wolfram checked exact equivalence and associativity on an integer test case; p/s matches direct weighted softmax. Floating-point order/rounding must be independently qualified under a fixed reduction tree. Do not implement incorrect independent tile-local softmax across a row.

Work packages and dependency

  • T0: preregister mathematical oracle, numerical tolerances, resource constraints and red controls.
  • T1 Omega #906: native .om tile description, checked shape/layout, host GEMM and streaming softmax references, mutated rejects.
  • T2 CUDApp #153: GB10 execution through current verified path, bytes/identity/negative receipts.
  • T3 GPU Head-to-Head #2: internal-only A/B of existing CUDApp tiled kernel and alternative Omega-native tile schedules, plus simple unblocked mathematical traffic model (never a claimed competitive speedup). First test GEMM 16×16×16 and row softmax 1×32, then larger prefill / decode shapes.
  • T4 Omega Harness #101: one-command, reproducible native user/agent run, explanations and exact receipts.

Acceptance and controls

  1. Native .om source compiles using a pinned seed-born compiler; independent Wolfram oracle and mutated math results discriminate correct/incorrect output.
  2. Shape, stride, dtype, overflow, alias/resource, stale source/compiler/receipt and uninitialized-output controls refuse for named reasons.
  3. Correct GPU output and honest host/chip timing recorded on a physically exercised GB10, only with existing operator-approved exclusive GPU access; otherwise label NOT_RUN.
  4. Benchmark p50/p95, resource usage, memory movement as measured when possible, and distinguish workload regimes (single-row decode weight-read vs batched/prefill vs attention streaming).
  5. A clean checkout can reproduce the host test; user's Spark can reproduce the chip test when legitimately free.

No firmware keys, unsigned firmware, kernel-module changes, reboot, 35B interruption, parallel unleased GPU jobs or unauthorized deployment. Final .om retirement only after consumer qualification, preserving transitional code disclosure. Third-party prior art is conceptual context only.

No comments.

Sign in to comment