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 / train / omega-llm / tests / gpu-dump.om

26 lines · 997 bytes Raw Blame History
1note gpu-dump.om: emit the gk and gr kernels for the small parity shape and write the whole 64-slot
2note code image gkcode (16 KiB per slot, 1 MiB) to stdout and a 128-byte table to stderr: bytes 0..63
3note the declared GPR counts gkgpr, bytes 64..127 the QMD TARGET_SM_CONFIG field of gksmw (hw value,
4note 0 for an id with no kernel), one byte per kernel id. No GPU is touched. Compose it after the parts
5note of the ollm_gb10 row of train/units.tsv with lio.om's `fn main to int` renamed (two mains
6note otherwise); upstream tests/omegallm/gpu-disasm.sh fed the slots to nvdisasm and checked each
7note slot's gkgpr. The image depends on the dims of grset only, not on the layer count or a loop.
8global gdgpr uchar 128
9fn main to int
10grset 256 32 64 2 128 2
11if not grall
12exit 3
13end
14if not gkall
15exit 2
16end
17w = write 1 gkcode 0 1048576
18for i ulong 64
19put gdgpr i uchar get gkgpr i
20if ne get gkthr i 0
21put gdgpr add i 64 uchar and shr gksmw uint i 23 63
22end
23end
24w = write 2 gdgpr 0 128
25exit 0
26end