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/qm_self.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 / qm_self.om` 88 lines · 1550 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Reuse existing QMMA record packing and scheduling, no new instruction encoder. 3 fn qm_self kind ulong a ulong c ulong d ulong b edit ulong 8192 m edit ulong 512 to ulong 4 x = new ulong 16 0 5 for i ulong 512 6 put m i 0 7 end 8 put m 2 1 9 put m 320 2 10 v = omega_cg_qmma_v m 2 11 v = omega_cg_qmma_v m 4 12 v = omega_cg_qmma_v m 2 13 v = omega_cg_qmma_v m 4 14 omega_cg_qmma_i x 7 15 put x 1 0 16 put x 6 856 17 put x 8 1 18 omega_cg_qmma_emit b m x 4 19 omega_cg_qmma_i x 5 20 put x 1 0 21 put x 6 896 22 omega_cg_qmma_emit b m x 2 23 for i ulong 3 24 omega_cg_qmma_i x 57 25 put x 1 add i 1 26 put x 2 0 27 put x 5 0 28 put x 6 mul i 16 29 k = ulong 3 30 if eq i 0 31 k = 2 32 end 33 if eq i 1 34 put x 0 56 35 end 36 omega_cg_qmma_emit b m x k 37 end 38 omega_cg_qmma_i x 16 39 put x 1 3 40 put x 2 1 41 put x 3 2 42 put x 4 3 43 put x 6 `1362114610` 44 put x 7 15 45 omega_cg_qmma_emit b m x 11 46 omega_cg_qmma_i x 0 47 put x 7 15 48 omega_cg_qmma_emit b m x 11 49 v = omega_cg_qmma_v m 1 50 omega_cg_qmma_i x 37 51 put x 1 v 52 put x 2 3 53 put x 3 3 54 put x 13 1 55 put x 6 `1178940467` 56 omega_cg_qmma_emit b m x 0 57 omega_cg_qmma_i x 12 58 put x 2 0 59 put x 3 v 60 put x 5 0 61 put x 6 64 62 omega_cg_qmma_emit b m x 5 63 omega_cg_qmma_i x 16 64 put x 1 3 65 put x 2 1 66 put x 3 2 67 put x 4 3 68 put x 7 15 69 omega_cg_qmma_emit b m x 11 70 omega_cg_qmma_i x 0 71 put x 7 15 72 omega_cg_qmma_emit b m x 11 73 for i ulong 4 74 omega_cg_qmma_i x 12 75 put x 2 0 76 put x 3 3 77 put x 5 0 78 put x 6 mul i 4 79 omega_cg_qmma_emit b m x 5 80 end 81 omega_cg_qmma_i x 45 82 omega_cg_qmma_emit b m x 7 83 omega_cg_qmma_i x 46 84 put x 7 `1032192` 85 omega_cg_qmma_pack b x get m 0 86 put m 0 add get m 0 1 87 ret get m 4 88 end