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/qwen-native/linear/spans-test.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 / qwen-native / linear / spans-test.om` 107 lines ยท 1577 bytes Raw Blame History 1 note Host-only calls into the admission function, using synthetic mapping records. 2 fn packets to bool 3 for i ulong 5 4 h = mapnew neg int 1 0 65536 3 34 5 if le h 0 6 ret false 7 end 8 put gbmem i h 9 end 10 for i ulong 4 11 put lqmap i get gbmem i 12 put lqoff i mul i 128 13 end 14 for fmt uint 2 15 n = lqemit fmt 16 lqpack fmt 129 160 2 17 if or eq n 0 eq get gbused 0 0 18 ret false 19 end 20 if or ne get gbq1 39 129 ne get gbq1 40 1 21 ret false 22 end 23 if or ne get gbq1 41 1 ne and get gbq1 34 65535 32 24 ret false 25 end 26 code = add mapaddr get gbmem 4 mul ulong fmt 16384 27 if ne get gbq1 32 gblo shr code 4 28 ret false 29 end 30 for i ulong 5 31 want = ulong 0 32 if eq i 4 33 want = add mapaddr get gbmem 4 32768 34 else 35 if or ne i 1 eq fmt 1 36 want = add mapaddr get lqmap i get lqoff i 37 end 38 end 39 if ne get gkarg mul i 2 gblo want 40 ret false 41 end 42 if ne get gkarg add mul i 2 1 gbhi want 43 ret false 44 end 45 end 46 if ne get gkarg 11 mul uint 160 sub uint 2 fmt 47 ret false 48 end 49 if or ne get gkarg 10 160 ne get gkarg 12 2 50 ret false 51 end 52 end 53 ret true 54 end 55 fn main to int 56 for i ulong 4 57 put lqmap i 17 58 put lqoff i mul i 1024 59 put lqlen i 256 60 end 61 put nvmmap 0 17 62 put nvmlen 0 4096 63 put nvmflag 0 15 64 if not lqvalid 1 65 exit 1 66 end 67 put lqoff 3 2300 68 if lqvalid 1 69 exit 2 70 end 71 put lqoff 3 2304 72 if not lqvalid 1 73 exit 3 74 end 75 put lqoff 3 `18446744073709551612` 76 if lqvalid 1 77 exit 4 78 end 79 put lqoff 3 2306 80 if lqvalid 1 81 exit 5 82 end 83 put lqoff 3 2304 84 put lqmap 3 71 85 if lqvalid 1 86 exit 6 87 end 88 put lqmap 3 17 89 put nvmflag 0 7 90 if lqvalid 1 91 exit 7 92 end 93 put nvmflag 0 15 94 put gbmem 4 17 95 if lqvalid 1 96 exit 8 97 end 98 put gbmem 4 0 99 put nvfifo 0 17 100 if lqvalid 1 101 exit 9 102 end 103 if not packets 104 exit 10 105 end 106 exit 0 107 end