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