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/graph/experts.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 / graph / experts.om` 74 lines · 1179 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Prefill experts: routed and shared GEMMs are separate launches. cfg15 is routed-segment count; v60..63 are shared segment/maps. 3 fn mg_exp c view ulong 16 v view ulong 64 d edit ulong 64 p ulong to ulong 4 for i ulong 64 5 put d i 0 6 end 7 if eq p 0 8 put d 0 34 9 ret gr_bperm c v d 10 end 11 if eq p 3 12 put d 0 36 13 ret gr_bwire c v d 14 end 15 if eq p 4 16 put d 0 37 17 ret gr_bperm c v d 18 end 19 if ge p 7 20 if ne add get c 6 1 get c 7 21 if gt get v 30 1 22 if ne get c 1 0 23 if eq p 7 24 put d 0 39 25 ret gr_bwire c v d 26 end 27 put d 0 255 28 ret 1 29 end 30 end 31 end 32 t = sub p 7 33 if eq add get c 6 1 get c 7 34 t = add t sub get v 30 1 35 end 36 if ge t get v 30 37 put d 0 255 38 ret 1 39 end 40 put d 0 40 41 put d 20 t 42 ret gr_bwire c v d 43 end 44 put d 7 mul get v 30 sub get c 14 1 45 put d 8 get c 15 46 put d 10 get v 40 47 put d 11 get v 44 48 put d 12 get v 45 49 put d 13 get v 42 50 put d 14 get v 43 51 put d 0 35 52 if eq p 2 53 put d 7 get v 30 54 put d 8 1 55 put d 10 get v 60 56 put d 13 get v 62 57 put d 14 get v 63 58 end 59 if ge p 5 60 put d 0 38 61 put d 10 get v 41 62 put d 11 get v 47 63 put d 12 get v 48 64 put d 13 get v 43 65 if eq p 6 66 put d 7 get v 30 67 put d 8 1 68 put d 10 get v 61 69 put d 13 get v 63 70 put d 14 get v 63 71 end 72 end 73 ret 1 74 end