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 / om / gpu / dsv41 / mma / mma_fp8.om

143 lines · 4760 bytes Raw Blame History
1note Fixed SM121a instruction stream calibrated against the included PTX oracle.
2om2
3fn ins a ulong b ulong to void
4buf = new uchar 16 0
5for i ulong 8
6put buf i uchar and shr a mul i 8 255
7put buf add 8 i uchar and shr b mul i 8 255
8end
9if ne write 1 buf 0 16 16
10exit 4
11end
12end
13fn main to int
14note LDC R1, c[0x0][0x37c] ;
15ins 0x0000df00ff017b82 0x000fe20000000800
16note S2R R0, SR_LANEID ;
17ins 0x0000000000007919 0x000e2e0000000000
18note LDC R4, c[0x0][0x3a8] ;
19ins 0x0000ea00ff047b82 0x000e620000000800
20note LDCU.128 UR8, c[0x0][0x380] ;
21ins 0x00007000ff0877ac 0x000ea20008000c00
22note S2R R12, SR_CTAID.X ;
23ins 0x00000000000c7919 0x000ee20000002500
24note LDCU.64 UR6, c[0x0][0x358] ;
25ins 0x00006b00ff0677ac 0x000f2a0008000a00
26note S2UR UR5, SR_CTAID.Y ;
27ins 0x00000000000579c3 0x000f620000002600
28note UMOV UR4, URZ ;
29ins 0x000000ff00047c82 0x000fce0008000000
30note LDC.64 R2, c[0x0][0x398] ;
31ins 0x0000e600ff027b82 0x000eb00000000a00
32note LDC.64 R18, c[0x0][0x390] ;
33ins 0x0000e400ff127b82 0x000f220000000a00
34note SHF.R.U32.HI R21, RZ, 0x5, R4 ;
35ins 0x00000005ff157819 0x002fe40000011604
36note SHF.R.U32.HI R13, RZ, 0x2, R0 ;
37ins 0x00000002ff0d7819 0x001fe20000011600
38note IMAD R7, R4, UR5, RZ ;
39ins 0x0000000504077c24 0x020fe2000f8e02ff
40note LOP3.LUT R0, R0, 0x3, RZ, 0xc0, !PT ;
41ins 0x0000000300007812 0x000fc600078ec0ff
42note IMAD R5, R12, 0x8, R13 ;
43ins 0x000000080c057824 0x008fc800078e020d
44note IMAD R9, R5.reuse, R4, RZ ;
45ins 0x0000000405097224 0x040fe400078e02ff
46note IMAD R4, R0, 0x4, R7 ;
47ins 0x0000000400047824 0x000fe200078e0207
48note MOV R7, RZ ;
49ins 0x000000ff00077202 0x000fe20000000f00
50note IMAD.WIDE.U32 R2, R5, R21, R2 ;
51ins 0x0000001505027225 0x004fe200078e0002
52note MOV R5, RZ ;
53ins 0x000000ff00057202 0x000fc60000000f00
54note IMAD R6, R0, 0x4, R9 ;
55ins 0x0000000400067824 0x000fe400078e0209
56note IADD.64 R14, R4, UR8 ;
57ins 0x00000008040e7c35 0x000fe4000f8e0200
58note MOV R4, RZ ;
59ins 0x000000ff00047202 0x000fe20000000f00
60note IADD.64 R16, R6, UR10 ;
61ins 0x0000000a06107c35 0x000fe4000f8e0200
62note MOV R5, RZ ;
63ins 0x000000ff00057202 0x000fe20000000f00
64note MOV R6, RZ ;
65ins 0x000000ff00067202 0x000fe20000000f00
66note MOV R7, RZ ;
67ins 0x000000ff00077202 0x000fe20000000f00
68note IMAD.WIDE.U32 R18, R21, UR5, R18 ;
69ins 0x0000000515127c25 0x010fce000f8e0012
70note LDG.E R8, desc[UR6][R14.64] ;
71ins 0x000000060e087981 0x000ea8000c1e1900
72note LDG.E R10, desc[UR6][R14.64+0x10] ;
73ins 0x000010060e0a7981 0x0000e8000c1e1900
74note LDG.E.U8 R20, desc[UR6][R18.64] ;
75ins 0x0000000612147981 0x000328000c1e1100
76note LDG.E.U8 R23, desc[UR6][R2.64] ;
77ins 0x0000000602177981 0x000b28000c1e1100
78note LDG.E R24, desc[UR6][R16.64] ;
79ins 0x0000000610187981 0x000f28000c1e1900
80note LDG.E R25, desc[UR6][R16.64+0x10] ;
81ins 0x0000100610197981 0x000b22000c1e1900
82note UIADD3 UR4, UPT, UPT, UR4, 0x1, URZ ;
83ins 0x0000000104047890 0x000fe2000fffe0ff
84note IADD.64 R14, R14, 0x20 ;
85ins 0x000000200e0e7835 0x001fc400078e0200
86note IADD.64 R18, R18, 0x1 ;
87ins 0x0000000112127835 0x002fe400078e0200
88note IADD.64 R2, R2, 0x1 ;
89ins 0x0000000102027835 0x020fe400078e0200
90note ISETP.LE.U32.AND P0, PT, R21, UR4, PT ;
91ins 0x0000000415007c0c 0x000fe2000bf03070
92note IADD.64 R16, R16, 0x20 ;
93ins 0x0000002010107835 0x000fe400078e0200
94note MOV R9, R8 ;
95ins 0x0000000800097202 0x004fe20000000f00
96note MOV R11, R10 ;
97ins 0x0000000a000b7202 0x008fce0000000f00
98note QMMA.SF.16832.F32.E4M3.E4M3.E8 R4, R8, R24, R4, R20, R23, URZ ;
99ins 0x717014180804747a 0x010fe40000003e04
100note NOP ;
101ins 0x0000000000007918 0x000fd80000000000
102note @!P0 BRA 0x1c0 ;
103ins 0xfffffffc00bc8947 0x000fde000383ffff
104note ISETP.NE.U32.AND P0, PT, R13, RZ, PT ;
105ins 0x000000ff0d00720c 0x000fda0003f05070
106note @P0 EXIT ;
107ins 0x000000000000094d 0x000fea0003800000
108note LDC R7, c[0x0][0x370] ;
109ins 0x0000dc00ff077b82 0x000e300000000800
110note LDC.64 R2, c[0x0][0x3a0] ;
111ins 0x0000e800ff027b82 0x000e620000000a00
112note IMAD R7, R7, UR5, R12 ;
113ins 0x0000000507077c24 0x001fc8000f8e020c
114note IMAD R7, R7, 0x4, R0 ;
115ins 0x0000000407077824 0x000fc800078e0200
116note IMAD.SHL.U32 R7, R7, 0x2, RZ ;
117ins 0x0000000207077824 0x000fc800078e00ff
118note IMAD.WIDE.U32 R2, R7, 0x4, R2 ;
119ins 0x0000000407027825 0x002fca00078e0002
120note STG.E.64 desc[UR6][R2.64], R4 ;
121ins 0x0000000402007986 0x000fe2000c101b06
122note EXIT ;
123ins 0x000000000000794d 0x000fea0003800000
124note BRA 0x370;
125ins 0xfffffffc00fc7947 0x000fc0000383ffff
126note NOP;
127ins 0x0000000000007918 0x000fc00000000000
128note NOP;
129ins 0x0000000000007918 0x000fc00000000000
130note NOP;
131ins 0x0000000000007918 0x000fc00000000000
132note NOP;
133ins 0x0000000000007918 0x000fc00000000000
134note NOP;
135ins 0x0000000000007918 0x000fc00000000000
136note NOP;
137ins 0x0000000000007918 0x000fc00000000000
138note NOP;
139ins 0x0000000000007918 0x000fc00000000000
140note NOP;
141ins 0x0000000000007918 0x000fc00000000000
142ret 0
143end