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