interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / skills / omega-gpu-om / SKILL.md

55 lines · 6827 bytes Raw Blame History Source

name: omega-gpu-om description: >- Migrate or write Blackwell GPU planners, schedulers, QMD packers, and SM121 codegen emitters in pure seeded OM-2 under om/gpu/, bound through om/units.sh. Use when touching omega-mv GPU codegen, om/gpu/*.om, omega_bw_om_ir.h, or regenerating src/omega_om_units.c.


Pure OM-2 Blackwell GPU Migration & Verification

Placement & Binding

  1. Put new pure OM-2 GPU units in om/gpu/ (do not edit pinned gpu/nvidia/om/*, which gpu/runtime/INVENTORY.tsv hashes against CUDApp).
  2. Add each new unit to UNITS in om/units.sh; add to FS_UNITS only if a consumer is in GPU_FS_SRCS (mk/omega-gpu-engine.mk).
  3. src/omega_om_units.c emits Linux ELF AArch64 inline asm and cannot compile on macOS. Always run om/units.sh, om/units.sh --check, and host/simulator tests on Spark (aarch64 Linux).
  4. Monitor src/omega_om_units.c size as units grow (omega-bridge native.om has 4 MiB input / 16 MiB output pool caps).

OM-2 + omega-bridge (src/native.om) Rules

Wire Format & Fail-Closed Boundary Rules

SM121 (GB10) Direct SASS Emitter Hazards & Proven Patterns

When writing direct SM121 emitters (e.g. om/gpu/q36/emit_{fast,prefill}.om using bw_enc_sm121.om):

Mandatory 4-Stage Verification Before Landing

Spark Scratch & Pinned Dependencies

  1. Regeneration: om/units.sh --check PASS on Spark.
  2. Correctness & Hazards: Run the target's host + warp-simulator suite (test-gpu-bf16-gemv, test-gpu-fp8gemm, test-gpu-fp8, gpu_pfhost_test --sim, etc.) AND make test-bw-hazard (0 new findings).
  3. Boundary & Error Paths: Run test_bw_om_codegen_bounds (hostile meta/ins rejection + invalid spec error-path preservation).
  4. Compiled Kernel Diff vs Parent: Compare insns, peak/declared GPRs, SM121 occupancy, avg stall cycles, and encoded SM121 SASS SHA-256 against the pre-migration parent commit. For live GB10 silicon validation, build --chip test binaries before opening spark-window (--gb10 exclusive --quiet exclusive with an EXIT trap that closes the window and posts RELEASE to ~/handoffs/BOARD.md), then run one binary at a time with a brief pause (sleep 2) between processes.