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 / gpu / nvidia / om / cache / templates_fixture.om

92 lines · 9013 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Immutable first successful C exporter/admission fixture from tests/native_artifact_manifest_test.c.
3note Preserved as native-admitted-fixture-20261028 in the operator's handoff files, device-load=NOT_RUN.
4note ELF prefix independently located by readelf .nv.info.test offset0x560, span40 ending before0x50.
5note Raw SHA bytes from standard independent hashlib, NOT kt_abi/kc_sha output.
6note Exact launch serialization is Composer-owned compose_launchwrite, not a second canonical schema.
7text kt_cbin "7f454c460201014108000000000000000200be00010000000000000000000000c00800000000000000060000000000000279000640003800050040000b000100002e7368737472746162002e737472746162002e73796d746162002e746578742e74657374002e6e762e636f6e7374616e74302e74657374002e6e762e696e666f002e6e762e636f6d706174002e6e762e696e666f2e74657374002e6e762e7368617265642e72657365727665642e30002e6e6f74652e6e762e6375696e666f0000746573740000000000000000000000000000000000000000000000000000000000000300040000000000000000000000000000000000010000001210040000000000000000001000000000000000000000000300050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042f08000200000001000000041108000200000000000000041208000200000000000000020900000202020002050500030701010203000002060100040b08000000000000000000043704008200000004170c00000000000000000000f5210003190800040a0800030000008003080003500000031b0100035f0101024a00000436040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000008000000e80300004e564944494120436f727000020079008200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000300000000000000000000000000000000000000400000000000000081000000000000000000000000000000010000000000000000000000000000000b0000000300000000000000000000000000000000000000c1000000000000000600000000000000000000000000000001000000000000000000000000000000130000000200000000000000000000000000000000000000c80000000000000060000000000000000200000002000000080000000000000018000000000000001b00000001000000060000000000000000000000000000008001000000000000100000000000000003000000020000008000000000000000000000000000000026000000010000004200000000000000000000000000000090010000000000008803000000000000030000000400000010000000000000000000000000000000390000000000007000000000000000000000000000000000180500000000000024000000000000000300000000000000040000000000000000000000000000004200000086000070000000000000000000000000000000003c0500000000000024000000000000000000000000000000040000000000000000000000000000004d0000000000007040000000000000000000000000000000600500000000000040000000000000000300000004000000040000000000000000000000000000005b0000000800000003000000000000000000000000000000a0050000000000004000000000000000000000000000000001000000000000000000000000000000710000000700000040000001000000000000000000000000e00500000000000020000000000000000000000002000000040000000000000000000000000000000600000004000000c008000000000000000000000000000000000000000000001801000000000000180100000000000008000000000000000100000004000000c0080000000000000000000000000000000000000000000018010000000000001801000000000000080000000000000001000000050000008001000000000000000000000000000000000000000000001000000000000000100000000000000008000000000000000100000006000000a005000000000000000000000000000000000000000000000000000000000000400000000000000008000000000000000100000004000000900100000000000000000000000000000000000000000000880300000000000088030000000000000800000000000000"
8text kt_qmd "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000100011002000848b4040000000000000000010000000100000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
9text kt_args "0000000000000000"
10text kt_id "35bb93b98b9c3478cf63752b350d3a958e356174325fa5ffe4a87b0dba8b0391"
11text kt_fn "test"
12text kt_hash "a062bdbb050226157cf8a89074447749ae70b91a936462a57ca674328d8b471faf5570f5a1810b7af78caf4bc70a660f0df51e42baf91d4de5b2328de0e83dfc68e40afdb661b8664fbc2ca649d997567fd7a5209ce7a30dccef5797dda065ef"
13fn kt_byte hi uchar lo uchar to uchar
14ret uchar or shl kt_hex hi 4 kt_hex lo
15end
16fn kt_sz wire edit uchar 64 k ulong v ulong to void
17for i ulong 8
18put wire add mul k 8 i uchar and shr v mul i 8 255
19end
20end
21fn main to int
22hashes = new uchar 4096 0
23for i ulong 96
24put hashes i kt_byte get kt_hash mul i 2 get kt_hash add mul i 2 1
25end
26l = new ulong 32 0
27wire = new uchar 4096 0
28put l 0 1
29put l 1 1
30put l 2 1
31put l 3 1
32put l 4 1
33put l 5 1
34put l 6 1
35put l 8 1
36put l 11 896
37put l 12 2
38put l 13 1
39put l 14 1
40for i ulong 12
41put l add 15 i compose_word hashes i
42end
43compose_launchwrite l wire
44if ne write 1 wire 0 4096 4096
45ret 91
46end
47ret kt_emitfixture
48end
49fn kt_emitfixture to int
50cubin = new uchar 32768 0
51obs = new uchar 2048 0
52sizes = new uchar 64 0
53for i ulong div len kt_cbin 2
54hi = get kt_cbin mul i 2
55lo = get kt_cbin add mul i 2 1
56put cubin i kt_byte hi lo
57end
58for i ulong 768
59hi = get kt_qmd mul i 2
60lo = get kt_qmd add mul i 2 1
61put obs i kt_byte hi lo
62end
63for i ulong div len kt_args 2
64hi = get kt_args mul i 2
65lo = get kt_args add mul i 2 1
66put obs add 768 i kt_byte hi lo
67end
68for i ulong len kt_fn
69put obs add 896 i get kt_fn i
70end
71for i ulong 32
72hi = get kt_id mul i 2
73lo = get kt_id add mul i 2 1
74put obs add 960 i kt_byte hi lo
75end
76for i ulong 64
77put obs add 1024 i get kt_id i
78end
79kt_sz sizes 0 div len kt_cbin 2
80kt_sz sizes 1 div len kt_args 2
81kt_sz sizes 2 len kt_fn
82if ne write 1 cubin 0 32768 32768
83ret 92
84end
85if ne write 1 obs 0 2048 2048
86ret 93
87end
88if ne write 1 sizes 0 64 64
89ret 94
90end
91ret 0
92end