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 / README.md

47 lines · 3064 bytes Raw Blame History Source

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

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 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