interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / om / moe / moe_admit.om

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