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_tile.om

159 lines · 5352 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 R2, SR_LANEID ;
17ins 0x0000000000027919 0x000e2e0000000000
18note LDC R20, c[0x0][0x3a8] ;
19ins 0x0000ea00ff147b82 0x000e620000000800
20note LDCU.128 UR4, c[0x0][0x390] ;
21ins 0x00007200ff0477ac 0x000ea20008000c00
22note S2R R4, SR_CTAID.Y ;
23ins 0x0000000000047919 0x000ee20000002600
24note LDCU.128 UR8, c[0x0][0x380] ;
25ins 0x00007000ff0877ac 0x000f220008000c00
26note S2R R0, SR_CTAID.X ;
27ins 0x0000000000007919 0x000f620000002500
28note SHF.R.U32.HI R22, RZ, 0x5, R20 ;
29ins 0x00000005ff167819 0x002fc40000011614
30note SHF.R.U32.HI R5, RZ, 0x2, R2 ;
31ins 0x00000002ff057819 0x001fe40000011602
32note LOP3.LUT R2, R2, 0x3, RZ, 0xc0, !PT ;
33ins 0x0000000302027812 0x000fc600078ec0ff
34note IMAD R3, R4, 0x10, R5.reuse ;
35ins 0x0000001004037824 0x108fe200078e0205
36note LOP3.LUT R4, R2, 0x1, RZ, 0xc0, !PT ;
37ins 0x0000000102047812 0x000fe200078ec0ff
38note IMAD R5, R0, 0x8, R5 ;
39ins 0x0000000800057824 0x020fe400078e0205
40note IMAD R7, R3, R20.reuse, RZ ;
41ins 0x0000001403077224 0x080fe400078e02ff
42note IMAD R9, R5.reuse, R20, RZ ;
43ins 0x0000001405097224 0x040fe400078e02ff
44note IMAD R15, R4, 0x8, R3 ;
45ins 0x00000008040f7824 0x000fe400078e0203
46note IMAD.WIDE.U32 R12, R5, R22, UR6 ;
47ins 0x00000006050c7e25 0x004fe2000f8e0016
48note MOV R5, RZ ;
49ins 0x000000ff00057202 0x000fe20000000f00
50note LDCU.64 UR6, c[0x0][0x358] ;
51ins 0x00006b00ff0677ac 0x000e240008000a00
52note IMAD R4, R2.reuse, 0x4, R7 ;
53ins 0x0000000402047824 0x040fe200078e0207
54note MOV R7, RZ ;
55ins 0x000000ff00077202 0x000fe20000000f00
56note IMAD R6, R2, 0x4, R9 ;
57ins 0x0000000402067824 0x000fc400078e0209
58note IMAD.WIDE.U32 R14, R22, R15, UR4 ;
59ins 0x00000004160e7e25 0x000fe2000f8e000f
60note IADD.64 R16, R4, UR8 ;
61ins 0x0000000804107c35 0x010fe4000f8e0200
62note IADD.64 R18, R6, UR10 ;
63ins 0x0000000a06127c35 0x000fe4000f8e0200
64note MOV R4, RZ ;
65ins 0x000000ff00047202 0x000fe20000000f00
66note MOV R5, RZ ;
67ins 0x000000ff00057202 0x000fe20000000f00
68note MOV R6, RZ ;
69ins 0x000000ff00067202 0x000fe20000000f00
70note MOV R7, RZ ;
71ins 0x000000ff00077202 0x000fe20000000f00
72note IMAD.WIDE.U32 R20, R20, 0x8, R16 ;
73ins 0x0000000814147825 0x000fe200078e0010
74note UMOV UR4, URZ ;
75ins 0x000000ff00047c82 0x000fcc0008000000
76note LDG.E.U8 R23, desc[UR6][R14.64] ;
77ins 0x000000060e177981 0x001ea8000c1e1100
78note LDG.E.U8 R24, desc[UR6][R12.64] ;
79ins 0x000000060c187981 0x000ea8000c1e1100
80note LDG.E R26, desc[UR6][R18.64] ;
81ins 0x00000006121a7981 0x000ea8000c1e1900
82note LDG.E R27, desc[UR6][R18.64+0x10] ;
83ins 0x00001006121b7981 0x000ea8000c1e1900
84note LDG.E R9, desc[UR6][R20.64] ;
85ins 0x0000000614097981 0x000ea8000c1e1900
86note LDG.E R11, desc[UR6][R20.64+0x10] ;
87ins 0x00001006140b7981 0x0000a8000c1e1900
88note LDG.E R8, desc[UR6][R16.64] ;
89ins 0x0000000610087981 0x000ea8000c1e1900
90note LDG.E R10, desc[UR6][R16.64+0x10] ;
91ins 0x00001006100a7981 0x0002a2000c1e1900
92note UIADD3 UR4, UPT, UPT, UR4, 0x1, URZ ;
93ins 0x0000000104047890 0x000fe2000fffe0ff
94note IADD.64 R20, R20, 0x20 ;
95ins 0x0000002014147835 0x001fc400078e0200
96note IADD.64 R14, R14, 0x1 ;
97ins 0x000000010e0e7835 0x000fe400078e0200
98note IADD.64 R12, R12, 0x1 ;
99ins 0x000000010c0c7835 0x000fe400078e0200
100note ISETP.LE.U32.AND P0, PT, R22, UR4, PT ;
101ins 0x0000000416007c0c 0x000fe2000bf03070
102note IADD.64 R18, R18, 0x20 ;
103ins 0x0000002012127835 0x000fe400078e0200
104note IADD.64 R16, R16, 0x20 ;
105ins 0x0000002010107835 0x002fe400078e0200
106note QMMA.SF.16832.F32.E4M3.E4M3.E8 R4, R8, R26, R4, R23, R24, URZ ;
107ins 0x7180171a0804747a 0x004fd00000003e04
108note NOP ;
109ins 0x0000000000007918 0x000fcc0000000000
110note @!P0 BRA 0x1f0 ;
111ins 0xfffffffc00b88947 0x000fde000383ffff
112note LDC R11, c[0x0][0x370] ;
113ins 0x0000dc00ff0b7b82 0x000e300000000800
114note LDC.64 R8, c[0x0][0x3a0] ;
115ins 0x0000e800ff087b82 0x000e620000000a00
116note IMAD R3, R3, R11, R0 ;
117ins 0x0000000b03037224 0x001fc800078e0200
118note IMAD R3, R3, 0x4, R2 ;
119ins 0x0000000403037824 0x000fc800078e0202
120note IMAD.SHL.U32 R3, R3, 0x2, RZ ;
121ins 0x0000000203037824 0x000fc800078e00ff
122note IMAD.WIDE.U32 R2, R3, 0x4, R8 ;
123ins 0x0000000403027825 0x002fca00078e0008
124note STG.E.64 desc[UR6][R2.64], R4 ;
125ins 0x0000000402007986 0x000fe2000c101b06
126note IMAD.WIDE.U32 R8, R11, 0x100, R2 ;
127ins 0x000001000b087825 0x000fca00078e0002
128note STG.E.64 desc[UR6][R8.64], R6 ;
129ins 0x0000000608007986 0x000fe2000c101b06
130note EXIT ;
131ins 0x000000000000794d 0x000fea0003800000
132note BRA 0x3b0;
133ins 0xfffffffc00fc7947 0x000fc0000383ffff
134note NOP;
135ins 0x0000000000007918 0x000fc00000000000
136note NOP;
137ins 0x0000000000007918 0x000fc00000000000
138note NOP;
139ins 0x0000000000007918 0x000fc00000000000
140note NOP;
141ins 0x0000000000007918 0x000fc00000000000
142note NOP;
143ins 0x0000000000007918 0x000fc00000000000
144note NOP;
145ins 0x0000000000007918 0x000fc00000000000
146note NOP;
147ins 0x0000000000007918 0x000fc00000000000
148note NOP;
149ins 0x0000000000007918 0x000fc00000000000
150note NOP;
151ins 0x0000000000007918 0x000fc00000000000
152note NOP;
153ins 0x0000000000007918 0x000fc00000000000
154note NOP;
155ins 0x0000000000007918 0x000fc00000000000
156note NOP;
157ins 0x0000000000007918 0x000fc00000000000
158ret 0
159end