interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / tools / sm121dis

9611dae Wave 1 C->Omega cutover: port json_canon, rx_operator, pd1_convert, sm121dis, and seed parity to OM-2; retire 17 C files Drake Stapleton committed 2026-11-22
..
README.md3064
check.sh3492
check_selftest.sh1944
corpus.sh2684
corpus_selftest.sh1670
oracle_pairs.sh816
sm121dis.om7375
zero_nvdisasm.sh4843

README.md

sm121dis: Omega's own GB10 disassembler

A disassembler turns the GPU's machine code back into readable instructions. Omega used to borrow NVIDIA's nvdisasm for that, in every check that reads a kernel back. sm121dis is Omega's own (row C6 of docs/OMEGA.md): the decoder is src/omega_sm121_disasm.c, this folder holds the command line and the comparison with NVIDIA's tool.

What it proves

  • Every kernel the library builds without the chip (each GPU test in its host-only and simulator modes, the numeric kernels, and every kernel the hazard checker's sweep builds) is collected and compared word by word with nvdisasm, text and spacing included. All 2,980 kernels (1,218,992 instruction words) agree (2026-10-30, host). The receipts in evidence/C6-DISASM/ predate the sweep kernels: 331 kernels (59,152 words) on 2026-10-24, 402 kernels (74,096 words) on 2026-10-25.
  • A copy of the decoder with one planted fault (SM121DIS_MUTANT, first source register off by one bit) must fail that comparison with a verdict, and does on 2,979 of the 2,980 kernels. The one it cannot touch is a sweep kernel of 32 words that is only EXIT, a branch and padding: it has no source register for the fault to change.
  • A kernel that could not be saved whole (a full disk) fails the collection; it is never compared cut short.
  • A word the decoder does not know is printed as ?? <hex> and fails the check. It is never guessed.

How to run it

make test-sm121dis          # collect, compare with nvdisasm, then the red check

nvdisasm is used only here, as the reference to compare against. Nothing it prints goes into a kernel.

Who uses it

The checks that used to call nvdisasm now call Omega's:

  • the listing checks inside tests/gpu_elementwise_test.c, gpu_fp8_api_test.c, gpu_reconv_test.c, gpu_attention_test.c and bench/prime_race/tests/gb10_sieve_host_test.c (linked in, omega_sm121_listing);
  • tools/divsqrt_nvdisasm_check.sh, tools/ldst_nvdisasm_check.sh and make test-numeric-reduce-nvdisasm (the build/sm121dis command);
  • the hazard checker's register cross-check, tests/bw_hazard_test.c --disasm (make test-bw-hazard-nvdisasm, linked in, omega_sm121_disasm), over every kernel its sweep builds. Those kernels are in the comparison corpus.

The script and target names are kept so older receipts still line up. make test-zero-nvdisasm proves that none of these checks runs nvdisasm.

Files

FileJob
sm121dis.omcommand line (pure Omega, composed with gpu/nvidia/om/disasm/sm121_dis.om): a listing, -b SM121 (called like nvdisasm), --pairs (for the comparison), --version
corpus.shruns every GPU test with OMEGA_KERNEL_DUMP_DIR set, so each kernel the library encodes is saved
check.shcompares its text with nvdisasm's for every saved kernel, SM121DIS_JOBS at a time (default: every CPU the process may use); PASS only when every word agrees
oracle_pairs.shturns nvdisasm's listing into the same one-line-per-word form