CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / tests / learn53 / moe-fixtures.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note HOST_ONLY synthetic metadata. No accepted records, candidate execution or q=true. |
| 3 | fn mf_fill b edit uchar 16384 to void |
| 4 | for i ulong 16384 |
| 5 | put b i 0 |
| 6 | end |
| 7 | mc_put edit b 0 2 |
| 8 | mc_put edit b 1 159 |
| 9 | mc_put edit b 2 11264 |
| 10 | mc_put edit b 3 1 |
| 11 | mc_put edit b 5 1 |
| 12 | mc_put edit b 7 1 |
| 13 | mc_put edit b 8 9 |
| 14 | mc_put edit b 9 2048 |
| 15 | mc_put edit b 10 512 |
| 16 | mc_put edit b 11 256 |
| 17 | mc_put edit b 12 8 |
| 18 | mc_put edit b 13 9 |
| 19 | mc_put edit b 14 256 |
| 20 | mc_put edit b 15 128 |
| 21 | mc_put edit b 16 256 |
| 22 | mc_put edit b 18 121 |
| 23 | mc_put edit b 19 5 |
| 24 | mc_put edit b 20 7 |
| 25 | mc_put edit b 22 11 |
| 26 | for i ulong 8 |
| 27 | mc_put edit b add 24 i 1 |
| 28 | end |
| 29 | for i ulong 9 |
| 30 | mc_put edit b add 64 i i |
| 31 | end |
| 32 | mc_put edit b 73 17 |
| 33 | mc_put edit b 74 128 |
| 34 | mc_put edit b 77 2 |
| 35 | mc_put edit b 79 1 |
| 36 | mc_put edit b 112 1 |
| 37 | mc_put edit b 113 2 |
| 38 | mc_put edit b 114 2 |
| 39 | mc_put edit b 115 2 |
| 40 | mc_put edit b 116 8 |
| 41 | for i ulong 5 |
| 42 | mc_put edit b add 117 i 1 |
| 43 | end |
| 44 | mc_put edit b 122 16 |
| 45 | mc_put edit b 123 16 |
| 46 | for i ulong 16 |
| 47 | p = mc_base i |
| 48 | mc_put edit b p mul add i 1 16777216 |
| 49 | mc_put edit b add p 1 10485760 |
| 50 | gen = ulong 5 |
| 51 | if ge i 14 |
| 52 | gen = 11 |
| 53 | end |
| 54 | mc_put edit b add p 2 gen |
| 55 | stride = ulong 1 |
| 56 | if lt i 4 |
| 57 | stride = 256 |
| 58 | end |
| 59 | if and ge i 4 lt i 6 |
| 60 | stride = 32 |
| 61 | end |
| 62 | if and ge i 6 lt i 8 |
| 63 | stride = 4 |
| 64 | end |
| 65 | if or eq i 8 eq i 13 |
| 66 | stride = mul ulong 2048 4 |
| 67 | end |
| 68 | if eq i 9 |
| 69 | stride = mul mul ulong 9 512 8 |
| 70 | end |
| 71 | if or eq i 10 eq i 11 |
| 72 | stride = mul mul ulong 9 512 4 |
| 73 | end |
| 74 | if eq i 12 |
| 75 | stride = mul mul ulong 9 2048 4 |
| 76 | end |
| 77 | mc_put edit b add p 3 stride |
| 78 | end |
| 79 | for i ulong 64 |
| 80 | for j ulong 32 |
| 81 | put b add add 1024 mul i 32 j uchar add i 1 |
| 82 | end |
| 83 | end |
| 84 | note Independent literal one-token oracle row: start0,count1,R9,all byte offsets0. |
| 85 | mc_put edit b 385 1 |
| 86 | mc_put edit b 386 9 |
| 87 | end |
| 88 | fn mf_context b view uchar 16384 q edit ulong 64 row edit ulong 64 to void |
| 89 | for i ulong 64 |
| 90 | put q i 0 |
| 91 | put row i 0 |
| 92 | end |
| 93 | put q 0 1 |
| 94 | put q 1 1 |
| 95 | put row 0 3 |
| 96 | for i ulong 4 |
| 97 | put q add i 3 mc_word b add i 17 |
| 98 | put row add i 17 mc_word b add i 17 |
| 99 | end |
| 100 | for i ulong 6 |
| 101 | for j ulong 4 |
| 102 | v = mc_limb b add i 38 j |
| 103 | put q add add 14 mul i 4 j v |
| 104 | put row add add 33 mul i 4 j v |
| 105 | end |
| 106 | end |
| 107 | for i ulong 4 |
| 108 | put row add 21 i mc_limb b 22 i |
| 109 | put row add 25 i mc_limb b 24 i |
| 110 | put row add 29 i mc_limb b 44 i |
| 111 | put row add 57 i mc_limb b 23 i |
| 112 | end |
| 113 | end |
| 114 | fn mf_cust b view uchar 16384 h view uchar 32 ctx edit ulong 32 to void |
| 115 | for i ulong 32 |
| 116 | put ctx i 0 |
| 117 | end |
| 118 | put ctx 0 1 |
| 119 | put ctx 1 1 |
| 120 | for i ulong 4 |
| 121 | v = ulong 0 |
| 122 | for j ulong 8 |
| 123 | v = or v shl ulong get h add mul i 8 j mul j 8 |
| 124 | end |
| 125 | put ctx add i 2 v |
| 126 | put ctx add i 6 mc_limb b 7 i |
| 127 | put ctx add i 10 mc_limb b 3 i |
| 128 | put ctx add i 14 mc_limb b 63 i |
| 129 | put ctx add i 18 mc_limb b 39 i |
| 130 | put ctx add i 22 mc_limb b 44 i |
| 131 | end |
| 132 | end |
| 133 | fn mf_fifteen b edit uchar 16384 to void |
| 134 | mf_fill edit b |
| 135 | mc_put edit b 3 2 |
| 136 | mc_put edit b 4 1 |
| 137 | mc_put edit b 5 15 |
| 138 | mc_put edit b 6 14 |
| 139 | mc_put edit b 73 add mul ulong 15 9 8 |
| 140 | note Independent Wolfram literal oracle; exact query/result recorded in CONTRACT. |
| 141 | mc_put edit b 385 14 |
| 142 | mc_put edit b 386 126 |
| 143 | mc_put edit b 392 14 |
| 144 | mc_put edit b 393 1 |
| 145 | mc_put edit b 394 9 |
| 146 | mc_put edit b 395 114688 |
| 147 | mc_put edit b 396 516096 |
| 148 | mc_put edit b 397 258048 |
| 149 | mc_put edit b 398 1032192 |
| 150 | mc_put edit b 399 3584 |
| 151 | end |