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/aien-sovereign-core-mv/blob/main/om/ribbon/test_driver.om # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. 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 `aien-sovereign-core-mv / om / ribbon / test_driver.om` 56 lines ยท 918 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Test transport appended to pipeline.om. Fixed little-endian u64 requests and replies. 3 fn unpack a view uchar 64 j ulong to ulong 4 v = ulong 0 5 for i ulong 8 6 v = or v shl ulong get a add mul j 8 i uint mul i 8 7 end 8 ret v 9 end 10 11 fn pack a edit uchar 72 j ulong v ulong to void 12 for i ulong 8 13 put a add mul j 8 i uchar and shr v uint mul i 8 255 14 end 15 end 16 17 fn main to int 18 st = new ulong 4096 0 19 q = new ulong 8 0 20 ans = new ulong 8 0 21 inb = new uchar 64 0 22 outb = new uchar 72 0 23 for turn ulong `1000000` 24 n = ulong 0 25 while lt n 64 bound 64 26 k = read 0 inb n sub 64 n 27 if lt k 0 28 ret 2 29 end 30 if eq k 0 31 if eq n 0 32 ret 0 33 end 34 ret 2 35 end 36 n = add n ulong k 37 end 38 for i ulong 8 39 put q i unpack inb i 40 end 41 rc = pipeline st q ans 42 pack outb 0 rc 43 for i ulong 8 44 pack outb add i 1 get ans i 45 end 46 n = ulong 0 47 while lt n 72 bound 72 48 k = write 1 outb n sub 72 n 49 if le k 0 50 ret 3 51 end 52 n = add n ulong k 53 end 54 end 55 ret 4 56 end