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/CUDApp/blob/main/om/codegen/cg_pf.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / codegen / cg_pf.om` 189 lines · 3190 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Successor of omega_blackwell_codegen_pf.c. Command tape replayed by omega_gpu_om_ir_replay. 3 note Record is 8 words: op, dst, src1, src2, src3, ureg, imm | control << 32, flags. 4 note c is 0 for the byte oracle and 1 for the mutant (the closing EXIT and BRA are dropped). 5 note Words are the C builder's emit() output (omega_blackwell_codegen_pf_copy_prog_c), not a recomputed schedule. 6 7 const ALL ulong `18446744073709551615` 8 9 fn w ins edit ulong 8192 i ulong v ulong to void 10 put ins i v 11 end 12 13 fn opw ins edit ulong 8192 n ulong op ulong to void 14 w ins mul n 8 op 15 end 16 17 fn dst ins edit ulong 8192 n ulong v ulong to void 18 w ins add mul n 8 1 v 19 end 20 21 fn s1 ins edit ulong 8192 n ulong v ulong to void 22 w ins add mul n 8 2 v 23 end 24 25 fn s2 ins edit ulong 8192 n ulong v ulong to void 26 w ins add mul n 8 3 v 27 end 28 29 fn s3 ins edit ulong 8192 n ulong v ulong to void 30 w ins add mul n 8 4 v 31 end 32 33 fn uv ins edit ulong 8192 n ulong v ulong to void 34 w ins add mul n 8 5 v 35 end 36 37 fn pk ins edit ulong 8192 n ulong imm ulong ctl ulong to void 38 w ins add mul n 8 6 or imm shl ctl 32 39 end 40 41 fn fl ins edit ulong 8192 n ulong v ulong to void 42 w ins add mul n 8 7 v 43 end 44 45 fn z ins edit ulong 8192 n ulong to void 46 s1 ins n ALL 47 s2 ins n ALL 48 s3 ins n ALL 49 uv ins n ALL 50 fl ins n 0 51 end 52 53 fn cg_pf_copy kind ulong a ulong b ulong c ulong ins edit ulong 8192 meta edit ulong 512 to int 54 if ne kind 0 55 ret 1 56 end 57 if or ne a 0 ne b 0 58 ret 1 59 end 60 if gt c 1 61 ret 1 62 end 63 put meta 1 7 64 put meta 2 1 65 put meta 64 2 66 put meta 65 2 67 put meta 66 1 68 put meta 67 1 69 put meta 68 1 70 put meta 69 1 71 put meta 70 4 72 put meta 320 2 73 opw ins 0 7 74 dst ins 0 0 75 z ins 0 76 pk ins 0 856 960512 77 fl ins 0 1 78 opw ins 1 5 79 dst ins 1 0 80 z ins 1 81 pk ins 1 896 `4335616` 82 opw ins 2 5 83 dst ins 2 1 84 z ins 2 85 pk ins 2 904 `3287040` 86 opw ins 3 4 87 dst ins 3 2 88 z ins 3 89 pk ins 3 912 `3287040` 90 opw ins 4 3 91 dst ins 4 3 92 z ins 4 93 pk ins 4 33 `3287040` 94 opw ins 5 3 95 dst ins 5 4 96 z ins 5 97 pk ins 5 37 `3287040` 98 opw ins 6 8 99 dst ins 6 5 100 s1 ins 6 4 101 s2 ins 6 ALL 102 s3 ins 6 3 103 uv ins 6 ALL 104 pk ins 6 256 `4180992` 105 fl ins 6 0 106 opw ins 7 28 107 dst ins 7 ALL 108 s1 ins 7 5 109 s2 ins 7 2 110 s3 ins 7 ALL 111 uv ins 7 ALL 112 pk ins 7 0 `1039360` 113 fl ins 7 0 114 opw ins 8 45 115 dst ins 8 ALL 116 z ins 8 117 pk ins 8 0 `1034752` 118 fl ins 8 2 119 opw ins 9 9 120 dst ins 9 1 121 s1 ins 9 5 122 s2 ins 9 ALL 123 s3 ins 9 1 124 uv ins 9 ALL 125 pk ins 9 16 `1035264` 126 fl ins 9 0 127 opw ins 10 9 128 dst ins 10 0 129 s1 ins 10 5 130 s2 ins 10 ALL 131 s3 ins 10 0 132 uv ins 10 ALL 133 pk ins 10 16 `1035264` 134 fl ins 10 0 135 opw ins 11 57 136 dst ins 11 6 137 s1 ins 11 1 138 s2 ins 11 ALL 139 s3 ins 11 ALL 140 uv ins 11 0 141 pk ins 11 0 141312 142 fl ins 11 0 143 opw ins 12 12 144 dst ins 12 ALL 145 s1 ins 12 0 146 s2 ins 12 6 147 s3 ins 12 ALL 148 uv ins 12 0 149 pk ins 12 0 `3401728` 150 fl ins 12 0 151 opw ins 13 12 152 dst ins 13 ALL 153 s1 ins 13 0 154 s2 ins 13 6 155 s3 ins 13 ALL 156 uv ins 13 0 157 pk ins 13 4 `2353152` 158 fl ins 13 `4294967296` 159 opw ins 14 12 160 dst ins 14 ALL 161 s1 ins 14 0 162 s2 ins 14 6 163 s3 ins 14 ALL 164 uv ins 14 0 165 pk ins 14 8 `2353152` 166 fl ins 14 `8589934592` 167 opw ins 15 12 168 dst ins 15 ALL 169 s1 ins 15 0 170 s2 ins 15 6 171 s3 ins 15 ALL 172 uv ins 15 0 173 pk ins 15 12 `2353152` 174 fl ins 15 `12884901888` 175 n = ulong 16 176 if eq c 0 177 opw ins 16 45 178 dst ins 16 ALL 179 z ins 16 180 pk ins 16 0 `3131904` 181 opw ins 17 46 182 dst ins 17 ALL 183 z ins 17 184 pk ins 17 0 `1032192` 185 n = ulong 18 186 end 187 put meta 0 n 188 ret 0 189 end