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/moe/moe_admit.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 / moe / moe_admit.om` 62 lines · 1691 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Concatenate exact Quant/Composer/Cache/Pipeline units before this unit. 3 note Trusted owner first runs pl_realcheck on immutable canonical records; no serializer here. 4 note Existing session lock spans validation, selection and record pin acquisition. 5 note Applicability binds router/routing/shape/layout closure. No receipt is authenticated here. 6 note Return76 wrong family, Pipeline status unchanged,80+GROUP refusal. 7 note Success lease uses existing kc_acquire/retire/unpin cmdlist lifecycle. 8 fn moe_clear lease edit ulong 16 to void 9 for i ulong 16 10 put lease i 0 11 end 12 end 13 fn moe_req r view ulong 16 q view ulong 64 p view ulong 528 words edit uchar 64 to long 14 rq = new ulong 16 0 15 for i ulong 16 16 put rq i get r i 17 end 18 put rq 12 get q 3 19 put rq 13 get p 1 20 note This shape helper's admitted bit is internal; pl_pin remains mandatory before publication. 21 put rq 14 1 22 rc = moe_group view rq words 23 if ne rc 0 24 ret long add rc 80 25 end 26 ret 0 27 end 28 fn moe_family sel view ulong 16 p edit ulong 528 lease edit ulong 16 to int 29 if eq get sel 2 3 30 ret 0 31 end 32 rc = kc_unpin p get lease 1 get lease 2 get lease 3 33 moe_clear lease 34 if ne rc 0 35 ret 75 36 end 37 ret 76 38 end 39 fn moe_copy src view uchar 64 dst edit uchar 64 to void 40 for i ulong 64 41 put dst i get src i 42 end 43 end 44 fn moe_admit r view ulong 16 q view ulong 64 a view ulong 1024 p edit ulong 528 o edit uchar 64 lease edit ulong 16 to long 45 words = new uchar 64 0 46 sel = new ulong 16 0 47 moe_clear lease 48 rc = moe_req r q p edit words 49 if ne rc 0 50 ret rc 51 end 52 rc = long pl_pin q a p edit sel lease 53 if ne rc 0 54 ret rc 55 end 56 rc = long moe_family view sel p lease 57 if ne rc 0 58 ret rc 59 end 60 moe_copy view words o 61 ret 0 62 end