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/native/learn53/omega-adapter.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 / native / learn53 / omega-adapter.om` 86 lines · 1646 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Compose with exact omega653.lock core. No fork, runner, signer or cost collector. 3 note LT/LPin/LC/status/exit are trusted executor inputs, not candidate claims. 4 fn aword p ulong v ulong to void 5 for i ulong 4 6 put LWant add mul p 4 i uchar and shr v mul i 8 255 7 end 8 end 9 fn aobserve id ulong status ulong code ulong n ulong to ulong 10 tn = kload id 11 if eq tn 0 12 ret 10 13 end 14 if ne kvalid tn 0 15 ret 10 16 end 17 for i ulong 256 18 put LWant i 0 19 end 20 aword 0 `2779096485` 21 for i ulong kw 13 22 aword add i 1 kexpect i 23 end 24 aword add kw 13 1 `2779096485` 25 want = mul 4 add kw 13 2 26 ret lobserve status 0 code want n 27 end 28 fn afields to bool 29 for i ulong 8 30 a = mul i 32 31 id = add i 1 32 n = kload id 33 if ne get LT a id 34 ret false 35 end 36 if ne get LT add a 1 2 37 ret false 38 end 39 if ne get LT add a 2 1 40 ret false 41 end 42 if ne get LT add a 3 kw 2 43 ret false 44 end 45 if ne get LT add a 4 1 46 ret false 47 end 48 if ne get LT add a 5 1 49 ret false 50 end 51 if ne get LT add a 6 53 52 ret false 53 end 54 if ne get LT add a 7 1 55 ret false 56 end 57 if ne get LT add a 28 n 58 ret false 59 end 60 if ne get LT add a 29 mul 4 add kw 13 2 61 ret false 62 end 63 if ne get LT add a 30 `1000000` 64 ret false 65 end 66 if ne get LT add a 31 0 67 ret false 68 end 69 end 70 ret true 71 end 72 fn abegin budget ulong to ulong 73 note Canonical active-run refusal preserves the existing run. 74 if eq get LS 0 1 75 ret 20 76 end 77 if eq afields false 78 note Invalid count invokes canonical fresh-run invalidation, including stale scores. 79 ret lbegin 0 1 budget 80 end 81 ret lbegin 8 1 budget 82 end 83 fn aattempt idx ulong ordinal ulong status ulong code ulong n ulong to ulong 84 outcome = aobserve add idx 1 status code n 85 ret lattempt idx ordinal outcome 86 end