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/tests/moe/ragged_pin_driver.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 / tests / moe / ragged_pin_driver.om` 58 lines · 1181 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Native driver for the ragged-K builder (cg_moe): builds specs through the unit's own entry cg_moe and compares the emitted 3 note instruction count with the count of the C-linked build (omega_fp8_gemv_ragged_prog_stats), so the pinned omc and the units.sh 4 note omc can be compared on the same source. Concatenate cg_moe_emit.om, cg_moe_core.om, cg_moe.om and this file. Exit 0 = all equal. 5 fn rp_check s view ulong 16 want ulong to ulong 6 b = new ulong 8192 0 7 m = new ulong 512 0 8 rc = cg_moe s edit b edit m 9 if ne rc 0 10 ret 1 11 end 12 if ne get m 0 want 13 ret 2 14 end 15 ret 0 16 end 17 fn rp_refused s view ulong 16 to ulong 18 b = new ulong 8192 0 19 m = new ulong 512 0 20 ret cg_moe s edit b edit m 21 end 22 fn main to int 23 a = new ulong 16 0 24 put a 0 640 25 put a 1 8 26 put a 2 1 27 put a 3 8 28 put a 10 1 29 if ne rp_check view a 119 0 30 ret 11 31 end 32 c = new ulong 16 0 33 put c 0 640 34 put c 1 16 35 put c 2 2 36 put c 3 4 37 put c 5 1 38 put c 6 1 39 put c 10 1 40 if ne rp_check view c 287 0 41 ret 12 42 end 43 d = new ulong 16 0 44 put d 0 2560 45 put d 1 16 46 put d 2 1 47 put d 3 8 48 put d 5 1 49 put d 10 1 50 if ne rp_check view d 153 0 51 ret 13 52 end 53 put a 10 0 54 if eq rp_refused view a 0 55 ret 14 56 end 57 ret 0 58 end