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