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/kgen/ew_reconv.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 / kgen / ew_reconv.om` 169 lines · 3069 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Probe registers: n5 i6 idx7 x8 y9 r10 s11 one12 cm1=13 nm1=14 d15 neg16 off17. 3 fn rpbegin ins edit ulong 8192 m edit ulong 512 to void 4 alloc m 13 5 put m 81 2 6 ldconst ins m 5 920 7 movi ins m 12 1 8 movi ins m 13 `4294967295` 9 ai ins m 6 4 128 3 10 add3 ins m 14 5 13 11 ai ins m 15 6 `4294967295` 14 12 fx ins m SHR r4 16 15 NR NR 31 13 ar ins m 7 16 15 6 14 addr ins m 17 7 0 15 load ins m 8 17 16 addr ins m 17 7 1 17 load ins m 9 17 18 end 19 fn rpend ins edit ulong 8192 m edit ulong 512 to void 20 out = nv m 1 21 off = nv m 2 22 shfl ins m 11 10 1 23 ai ins m out 11 4099 10 24 isgte ins m 6 5 25 exitp ins m 26 addr ins m off 6 2 27 store ins m off out 28 tail ins m 29 end 30 fn diamond ins edit ulong 8192 m edit ulong 512 to void 31 rpbegin ins m 32 alloc m 2 33 rb ins m 34 isgte ins m 8 9 35 els = fwd ins m 36 add3 ins m 10 8 12 37 rx ins m 0 38 patch ins m els 39 ai ins m 18 8 3 9 40 fx ins m XOR r4 19 18 8 NR 0 41 ai ins m 10 19 5 12 42 fx ins m SHR r4 18 10 NR NR 3 43 add3 ins m 10 10 18 44 if ne get m 369 0 45 add3 ins m 10 10 12 46 end 47 rj ins m 48 rpend ins m 49 end 50 fn countlp ins edit ulong 8192 m edit ulong 512 to void 51 note v18 cnt19; st/bound/c255/c15 allocated after optional nested registers20/21. 52 st = nv m 1 53 lim = nv m 1 54 c255 = nv m 1 55 c15 = nv m 1 56 movi ins m c255 255 57 movi ins m c15 15 58 if ne get m 369 0 59 movi ins m lim 255 60 else 61 movi ins m lim 256 62 end 63 fx ins m LUT r4 18 8 c255 NR 192 64 fx ins m LUT r4 st 9 c15 NR 192 65 add3 ins m st st 12 66 zero ins m 19 67 rb ins m 68 lb m 69 at = get m 0 70 isgte ins m 18 lim 71 rx ins m 1 72 add3 ins m 18 18 st 73 add3 ins m 19 19 12 74 branch ins m at 0 75 lend m 76 rj ins m 77 end 78 fn loopbrk ins edit ulong 8192 m edit ulong 512 to void 79 rpbegin ins m 80 alloc m 2 81 countlp ins m 82 ai ins m 10 19 256 18 83 rpend ins m 84 end 85 fn nested ins edit ulong 8192 m edit ulong 512 to void 86 rpbegin ins m 87 alloc m 4 88 movi ins m 10 7 89 movi ins m 21 100 90 fx ins m LUT r4 20 8 12 NR 192 91 rb ins m 92 isgte ins m 20 12 93 rx ins m 1 94 countlp ins m 95 ai ins m 10 19 256 18 96 add3 ins m 10 10 21 97 rj ins m 98 rpend ins m 99 end 100 fn exitbar ins edit ulong 8192 m edit ulong 512 early ulong to void 101 rpbegin ins m 102 note saddr18 paddr19 yv20 xv21 low22. 103 alloc m 5 104 if ne early 0 105 if and eq early 1 ne get m 370 0 106 put m 15 1 107 end 108 isgte ins m 6 5 109 exitp ins m 110 end 111 ai ins m 21 8 1 NR 112 fx ins m LUT r4 22 8 12 NR 192 113 rb ins m 114 isgte ins m 22 12 115 rx ins m 1 116 add3 ins m 21 21 12 117 rj ins m 118 ai ins m 18 3 4 NR 119 emit ins m ok STS 4 0 NR r4 NR 18 21 NR 0 120 bar ins m 121 fx ins m XOR r4 19 3 12 NR 0 122 ai ins m 19 19 4 NR 123 vr ins m LDS r4 20 19 NR NR 0 124 ai ins m 10 8 3 20 125 rpend ins m 126 end 127 fn depth ins edit ulong 8192 m edit ulong 512 levels ulong to void 128 rpbegin ins m 129 ai ins m 10 8 1 NR 130 for d ulong levels 131 rb ins m 132 isgte ins m 8 9 133 rx ins m 1 134 add3 ins m 10 10 12 135 end 136 for d ulong levels 137 rj ins m 138 end 139 rpend ins m 140 end 141 fn refuse ins edit ulong 8192 m edit ulong 512 which ulong to void 142 rpbegin ins m 143 if eq which 19 144 rb ins m 145 isgte ins m 6 5 146 exitp ins m 147 rj ins m 148 end 149 if eq which 20 150 rb ins m 151 bar ins m 152 rj ins m 153 end 154 if eq which 21 155 rb ins m 156 shfl ins m 11 8 1 157 rj ins m 158 end 159 if eq which 22 160 rb ins m 161 isgte ins m 8 9 162 rx ins m 1 163 end 164 if eq which 23 165 rj ins m 166 end 167 ai ins m 10 8 1 NR 168 rpend ins m 169 end