Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/om/gpu/dsv41/mma/mma_fp4_s2_tile.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / om / gpu / dsv41 / mma / mma_fp4_s2_tile.om` 191 lines ยท 6736 bytes Raw Blame History 1 note Fixed SM121a instruction stream calibrated against the included PTX oracle. 2 om2 3 fn ins a ulong b ulong to void 4 buf = new uchar 16 0 5 for i ulong 8 6 put buf i uchar and shr a mul i 8 255 7 put buf add 8 i uchar and shr b mul i 8 255 8 end 9 if ne write 1 buf 0 16 16 10 exit 4 11 end 12 end 13 fn main to int 14 note LDC R1, c[0x0][0x37c] ; 15 ins 0x0000df00ff017b82 0x000fe20000000800 16 note S2R R12, SR_LANEID ; 17 ins 0x00000000000c7919 0x000e2e0000000000 18 note LDC R20, c[0x0][0x3a8] ; 19 ins 0x0000ea00ff147b82 0x000e620000000800 20 note LDCU.128 UR8, c[0x0][0x380] ; 21 ins 0x00007000ff0877ac 0x000ea20008000c00 22 note MOV R23, RZ ; 23 ins 0x000000ff00177202 0x000fe20000000f00 24 note S2R R0, SR_CTAID.X ; 25 ins 0x0000000000007919 0x000ee20000002500 26 note CS2R R6, SRZ ; 27 ins 0x0000000000067805 0x000fe2000001ff00 28 note LDCU.128 UR4, c[0x0][0x390] ; 29 ins 0x00007200ff0477ac 0x000f220008000c00 30 note S2R R2, SR_CTAID.Y ; 31 ins 0x0000000000027919 0x000f620000002600 32 note SHF.R.U32.HI R18, RZ, 0x5, R20 ; 33 ins 0x00000005ff127819 0x002fc40000011614 34 note SHF.R.U32.HI R13, RZ, 0x2, R12 ; 35 ins 0x00000002ff0d7819 0x001fe4000001160c 36 note LOP3.LUT R12, R12, 0x3, RZ, 0xc0, !PT ; 37 ins 0x000000030c0c7812 0x000fc600078ec0ff 38 note IMAD R3, R0, 0x8, R13.reuse ; 39 ins 0x0000000800037824 0x108fe400078e020d 40 note IMAD R13, R2, 0x10, R13 ; 41 ins 0x00000010020d7824 0x020fe200078e020d 42 note LOP3.LUT R2, R12.reuse, 0x1, RZ, 0xc0, !PT ; 43 ins 0x000000010c027812 0x040fe200078ec0ff 44 note IMAD R5, R3, R20.reuse, RZ ; 45 ins 0x0000001403057224 0x080fe400078e02ff 46 note IMAD R17, R13, R20, RZ ; 47 ins 0x000000140d117224 0x000fe400078e02ff 48 note IMAD R5, R12.reuse, 0x4, R5 ; 49 ins 0x000000040c057824 0x040fe400078e0205 50 note IMAD R16, R12, 0x4, R17 ; 51 ins 0x000000040c107824 0x000fe200078e0211 52 note MOV R17, RZ ; 53 ins 0x000000ff00117202 0x000fe20000000f00 54 note IMAD R15, R2, 0x8, R13 ; 55 ins 0x00000008020f7824 0x000fe200078e020d 56 note SHF.R.U32.HI R22, RZ, 0x1, R5 ; 57 ins 0x00000001ff167819 0x000fe20000011605 58 note CS2R R4, SRZ ; 59 ins 0x0000000000047805 0x000fe2000001ff00 60 note IMAD.WIDE.U32 R2, R3, R18, UR6 ; 61 ins 0x0000000603027e25 0x010fe2000f8e0012 62 note IADD.64 R16, R16, UR8 ; 63 ins 0x0000000810107c35 0x004fc4000f8e0200 64 note IADD.64 R22, R22, UR10 ; 65 ins 0x0000000a16167c35 0x000fe4000f8e0200 66 note IMAD.WIDE.U32 R14, R18, R15, UR4 ; 67 ins 0x00000004120e7e25 0x000fe2000f8e000f 68 note LDCU.64 UR6, c[0x0][0x358] ; 69 ins 0x00006b00ff0677ac 0x000e260008000a00 70 note IMAD.WIDE.U32 R20, R20, 0x8, R16 ; 71 ins 0x0000000814147825 0x000fe200078e0010 72 note UMOV UR4, URZ ; 73 ins 0x000000ff00047c82 0x000fcc0008000000 74 note LDG.E.U16 R25, desc[UR6][R22.64] ; 75 ins 0x0000000616197981 0x001ea8000c1e1500 76 note LDG.E.U16 R28, desc[UR6][R22.64+0x8] ; 77 ins 0x00000806161c7981 0x0000e8000c1e1500 78 note LDG.E.U8 R24, desc[UR6][R14.64] ; 79 ins 0x000000060e187981 0x000f28000c1e1100 80 note LDG.E.U8 R19, desc[UR6][R2.64] ; 81 ins 0x0000000602137981 0x000f28000c1e1100 82 note LDG.E R9, desc[UR6][R20.64] ; 83 ins 0x0000000614097981 0x000f28000c1e1900 84 note LDG.E R11, desc[UR6][R20.64+0x10] ; 85 ins 0x00001006140b7981 0x000328000c1e1900 86 note LDG.E R8, desc[UR6][R16.64] ; 87 ins 0x0000000610087981 0x000f28000c1e1900 88 note LDG.E R10, desc[UR6][R16.64+0x10] ; 89 ins 0x00001006100a7981 0x000b22000c1e1900 90 note UIADD3 UR4, UPT, UPT, UR4, 0x1, URZ ; 91 ins 0x0000000104047890 0x000fe2000fffe0ff 92 note IADD.64 R22, R22, 0x10 ; 93 ins 0x0000001016167835 0x001fc400078e0200 94 note IADD.64 R20, R20, 0x20 ; 95 ins 0x0000002014147835 0x002fe400078e0200 96 note IADD.64 R14, R14, 0x1 ; 97 ins 0x000000010e0e7835 0x000fe400078e0200 98 note ISETP.LE.U32.AND P0, PT, R18, UR4, PT ; 99 ins 0x0000000412007c0c 0x000fe2000bf03070 100 note IADD.64 R2, R2, 0x1 ; 101 ins 0x0000000102027835 0x000fe400078e0200 102 note IADD.64 R16, R16, 0x20 ; 103 ins 0x0000002010107835 0x020fc600078e0200 104 note LOP3.LUT R26, R25.reuse, 0xf, RZ, 0xc0, !PT ; 105 ins 0x0000000f191a7812 0x044fe400078ec0ff 106 note LOP3.LUT R27, R25, 0xf0, RZ, 0xc0, !PT ; 107 ins 0x000000f0191b7812 0x000fe400078ec0ff 108 note LOP3.LUT R29, R28.reuse, 0xf, RZ, 0xc0, !PT ; 109 ins 0x0000000f1c1d7812 0x048fe400078ec0ff 110 note LOP3.LUT R30, R28, 0xf0, RZ, 0xc0, !PT ; 111 ins 0x000000f01c1e7812 0x000fe200078ec0ff 112 note IMAD R26, R27, 0x10, R26 ; 113 ins 0x000000101b1a7824 0x000fe200078e021a 114 note LOP3.LUT R27, R25.reuse, 0xf00, RZ, 0xc0, !PT ; 115 ins 0x00000f00191b7812 0x040fe400078ec0ff 116 note LOP3.LUT R25, R25, 0xf000, RZ, 0xc0, !PT ; 117 ins 0x0000f00019197812 0x000fe200078ec0ff 118 note IMAD R29, R30, 0x10, R29 ; 119 ins 0x000000101e1d7824 0x000fe200078e021d 120 note LOP3.LUT R30, R28.reuse, 0xf00, RZ, 0xc0, !PT ; 121 ins 0x00000f001c1e7812 0x040fe200078ec0ff 122 note IMAD R26, R27, 0x100, R26 ; 123 ins 0x000001001b1a7824 0x000fe200078e021a 124 note LOP3.LUT R28, R28, 0xf000, RZ, 0xc0, !PT ; 125 ins 0x0000f0001c1c7812 0x000fc600078ec0ff 126 note IMAD R29, R30, 0x100, R29 ; 127 ins 0x000001001e1d7824 0x000fe400078e021d 128 note IMAD R25, R25, 0x1000, R26 ; 129 ins 0x0000100019197824 0x000fe400078e021a 130 note IMAD R27, R28, 0x1000, R29 ; 131 ins 0x000010001c1b7824 0x000fe400078e021d 132 note IMAD.SHL.U32 R26, R25, 0x4, RZ ; 133 ins 0x00000004191a7824 0x000fe400078e00ff 134 note IMAD.SHL.U32 R27, R27, 0x4, RZ ; 135 ins 0x000000041b1b7824 0x000fce00078e00ff 136 note QMMA.SF.16832.F32.E4M3.E2M1.E8 R4, R8, R26, R4, R24, R19, URZ ; 137 ins 0x7130181a0804747a 0x010fe2000020be04 138 note NOP ; 139 ins 0x0000000000007918 0x000fda0000000000 140 note @!P0 BRA 0x1e0 ; 141 ins 0xfffffffc00788947 0x000fde000383ffff 142 note LDC R11, c[0x0][0x370] ; 143 ins 0x0000dc00ff0b7b82 0x000e300000000800 144 note LDC.64 R2, c[0x0][0x3a0] ; 145 ins 0x0000e800ff027b82 0x000e620000000a00 146 note IMAD R13, R13, R11, R0 ; 147 ins 0x0000000b0d0d7224 0x001fc800078e0200 148 note IMAD R9, R13, 0x4, R12 ; 149 ins 0x000000040d097824 0x000fc800078e020c 150 note IMAD.SHL.U32 R9, R9, 0x2, RZ ; 151 ins 0x0000000209097824 0x000fc800078e00ff 152 note IMAD.WIDE.U32 R2, R9, 0x4, R2 ; 153 ins 0x0000000409027825 0x002fca00078e0002 154 note STG.E.64 desc[UR6][R2.64], R4 ; 155 ins 0x0000000402007986 0x000fe2000c101b06 156 note IMAD.WIDE.U32 R8, R11, 0x100, R2 ; 157 ins 0x000001000b087825 0x000fca00078e0002 158 note STG.E.64 desc[UR6][R8.64], R6 ; 159 ins 0x0000000608007986 0x000fe2000c101b06 160 note EXIT ; 161 ins 0x000000000000794d 0x000fea0003800000 162 note BRA 0x4a0; 163 ins 0xfffffffc00fc7947 0x000fc0000383ffff 164 note NOP; 165 ins 0x0000000000007918 0x000fc00000000000 166 note NOP; 167 ins 0x0000000000007918 0x000fc00000000000 168 note NOP; 169 ins 0x0000000000007918 0x000fc00000000000 170 note NOP; 171 ins 0x0000000000007918 0x000fc00000000000 172 note NOP; 173 ins 0x0000000000007918 0x000fc00000000000 174 note NOP; 175 ins 0x0000000000007918 0x000fc00000000000 176 note NOP; 177 ins 0x0000000000007918 0x000fc00000000000 178 note NOP; 179 ins 0x0000000000007918 0x000fc00000000000 180 note NOP; 181 ins 0x0000000000007918 0x000fc00000000000 182 note NOP; 183 ins 0x0000000000007918 0x000fc00000000000 184 note NOP; 185 ins 0x0000000000007918 0x000fc00000000000 186 note NOP; 187 ins 0x0000000000007918 0x000fc00000000000 188 note NOP; 189 ins 0x0000000000007918 0x000fc00000000000 190 ret 0 191 end