omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / seed / host / aien-ioctl-matrix.json
| 1 | { |
| 2 | "allowed": [ |
| 3 | [ |
| 4 | "info", |
| 5 | 2154840336, |
| 6 | 112, |
| 7 | 111, |
| 8 | 113 |
| 9 | ], |
| 10 | [ |
| 11 | "mem-alloc", |
| 12 | 3224387873, |
| 13 | 48, |
| 14 | 47, |
| 15 | 49 |
| 16 | ], |
| 17 | [ |
| 18 | "mem-free", |
| 19 | 3222815010, |
| 20 | 24, |
| 21 | 23, |
| 22 | 25 |
| 23 | ], |
| 24 | [ |
| 25 | "chan-create", |
| 26 | 3225960739, |
| 27 | 72, |
| 28 | 71, |
| 29 | 73 |
| 30 | ], |
| 31 | [ |
| 32 | "chan-destroy", |
| 33 | 3222815012, |
| 34 | 24, |
| 35 | 23, |
| 36 | 25 |
| 37 | ] |
| 38 | ], |
| 39 | "denied": [ |
| 40 | [ |
| 41 | "info-encoded-size", |
| 42 | 2154774800, |
| 43 | 111 |
| 44 | ], |
| 45 | [ |
| 46 | "info-neighbor", |
| 47 | 2154840337, |
| 48 | 112 |
| 49 | ], |
| 50 | [ |
| 51 | "info-type", |
| 52 | 2154840592, |
| 53 | 112 |
| 54 | ], |
| 55 | [ |
| 56 | "info-direction", |
| 57 | 3228582160, |
| 58 | 112 |
| 59 | ], |
| 60 | [ |
| 61 | "mem-alloc-encoded-size", |
| 62 | 3224322337, |
| 63 | 47 |
| 64 | ], |
| 65 | [ |
| 66 | "mem-alloc-neighbor", |
| 67 | 3224387874, |
| 68 | 48 |
| 69 | ], |
| 70 | [ |
| 71 | "mem-alloc-type", |
| 72 | 3224388129, |
| 73 | 48 |
| 74 | ], |
| 75 | [ |
| 76 | "mem-alloc-read-only", |
| 77 | 2150646049, |
| 78 | 48 |
| 79 | ], |
| 80 | [ |
| 81 | "mem-alloc-write-only", |
| 82 | 1076904225, |
| 83 | 48 |
| 84 | ], |
| 85 | [ |
| 86 | "mem-free-encoded-size", |
| 87 | 3222749474, |
| 88 | 23 |
| 89 | ], |
| 90 | [ |
| 91 | "mem-free-neighbor", |
| 92 | 3222815011, |
| 93 | 24 |
| 94 | ], |
| 95 | [ |
| 96 | "mem-free-type", |
| 97 | 3222815266, |
| 98 | 24 |
| 99 | ], |
| 100 | [ |
| 101 | "mem-free-read-only", |
| 102 | 2149073186, |
| 103 | 24 |
| 104 | ], |
| 105 | [ |
| 106 | "mem-free-write-only", |
| 107 | 1075331362, |
| 108 | 24 |
| 109 | ], |
| 110 | [ |
| 111 | "chan-create-encoded-size", |
| 112 | 3225895203, |
| 113 | 71 |
| 114 | ], |
| 115 | [ |
| 116 | "chan-create-neighbor", |
| 117 | 3225960740, |
| 118 | 72 |
| 119 | ], |
| 120 | [ |
| 121 | "chan-create-type", |
| 122 | 3225960995, |
| 123 | 72 |
| 124 | ], |
| 125 | [ |
| 126 | "chan-create-read-only", |
| 127 | 2152218915, |
| 128 | 72 |
| 129 | ], |
| 130 | [ |
| 131 | "chan-create-write-only", |
| 132 | 1078477091, |
| 133 | 72 |
| 134 | ], |
| 135 | [ |
| 136 | "chan-destroy-encoded-size", |
| 137 | 3222749476, |
| 138 | 23 |
| 139 | ], |
| 140 | [ |
| 141 | "chan-destroy-neighbor", |
| 142 | 3222815013, |
| 143 | 24 |
| 144 | ], |
| 145 | [ |
| 146 | "chan-destroy-type", |
| 147 | 3222815268, |
| 148 | 24 |
| 149 | ], |
| 150 | [ |
| 151 | "chan-destroy-read-only", |
| 152 | 2149073188, |
| 153 | 24 |
| 154 | ], |
| 155 | [ |
| 156 | "chan-destroy-write-only", |
| 157 | 1075331364, |
| 158 | 24 |
| 159 | ], |
| 160 | [ |
| 161 | "boot", |
| 162 | 3236970769, |
| 163 | 240 |
| 164 | ], |
| 165 | [ |
| 166 | "arena-read", |
| 167 | 1075331346, |
| 168 | 24 |
| 169 | ], |
| 170 | [ |
| 171 | "rm-init", |
| 172 | 3343401248, |
| 173 | 1864 |
| 174 | ], |
| 175 | [ |
| 176 | "boot-info-shape", |
| 177 | 2154840337, |
| 178 | 112 |
| 179 | ], |
| 180 | [ |
| 181 | "arena-read-info-shape", |
| 182 | 2154840338, |
| 183 | 112 |
| 184 | ], |
| 185 | [ |
| 186 | "rm-init-info-shape", |
| 187 | 2154840352, |
| 188 | 112 |
| 189 | ] |
| 190 | ], |
| 191 | "layout_query": "csize[fields_] := Module[{off=0,a=Max[fields[[All,2]]]},Do[off=Ceiling[off/f[[2]]]*f[[2]]+f[[1]],{f,fields}];Ceiling[off/a]*a]; layouts={Join[ConstantArray[{4,4},4],ConstantArray[{8,8},6],ConstantArray[{4,4},3+9]],{{8,8},{8,8},{4,4},{4,4},{8,8},{16,4}},{{4,4},{4,4},{16,4}},{{4,4},{4,4},{8,8},{4,4},{4,4},{8,8},{4,4},{4,4},{8,8},{4,4},{4,4},{16,4}},{{4,4},{4,4},{16,4}}}; sizes=csize/@layouts; spec=Transpose[{{2,3,3,3,3},{16,33,34,35,36},sizes}]; {sizes,Map[Function[r,With[{q=BitOr[BitShiftLeft[r[[1]],30],BitShiftLeft[First[ToCharacterCode[\"A\"]],8],r[[2]],BitShiftLeft[r[[3]],16]]},{q,IntegerString[q,16],BitAnd[BitShiftRight[q,30],3],BitAnd[BitShiftRight[q,8],255],BitAnd[q,255],BitAnd[BitShiftRight[q,16],16383]}]],spec]}", |
| 192 | "layout_result": "{{112,48,24,72,24},{{2154840336,\"80704110\",2,65,16,112},{3224387873,\"c0304121\",3,65,33,48},{3222815010,\"c0184122\",3,65,34,24},{3225960739,\"c0484123\",3,65,35,72},{3222815012,\"c0184124\",3,65,36,24}}}", |
| 193 | "wolfram_query": "enc[d_,t_,n_,s_] := BitOr[BitShiftLeft[d,30],BitShiftLeft[t,8],n,BitShiftLeft[s,16]]; defs={{\"info\",2,16,112},{\"mem-alloc\",3,33,48},{\"mem-free\",3,34,24},{\"chan-create\",3,35,72},{\"chan-destroy\",3,36,24}}; allowed=Map[Function[r,{r[[1]],enc[r[[2]],65,r[[3]],r[[4]]],r[[4]],r[[4]]-1,r[[4]]+1}],defs]; denied=Flatten[Map[Function[r,Join[{{r[[1]]<>\"-encoded-size\",enc[r[[2]],65,r[[3]],r[[4]]-1],r[[4]]-1},{r[[1]]<>\"-neighbor\",enc[r[[2]],65,r[[3]]+1,r[[4]]],r[[4]]},{r[[1]]<>\"-type\",enc[r[[2]],66,r[[3]],r[[4]]],r[[4]]}},If[r[[2]]==2,{{r[[1]]<>\"-direction\",enc[3,65,r[[3]],r[[4]]],r[[4]]}},{{r[[1]]<>\"-read-only\",enc[2,65,r[[3]],r[[4]]],r[[4]]},{r[[1]]<>\"-write-only\",enc[1,65,r[[3]],r[[4]]],r[[4]]}}]]],defs],1]; csize[f_] := Module[{o=0,a=Max[f[[All,2]]]},Do[o=Ceiling[o/x[[2]]]*x[[2]]+x[[1]],{x,f}];Ceiling[o/a]*a]; bout=csize[Join[ConstantArray[{4,4},3+4+2+6+5],{{8,8},{8,8}},ConstantArray[{4,4},4]]]; excluded={{\"boot\",3,17,csize[{{128,1},{bout,8}}]},{\"arena-read\",1,18,csize[{{8,8},{8,8},{8,8}}]},{\"rm-init\",3,32,csize[Join[{{16,4}},ConstantArray[{4,4},2+3+1+8],{{1792,1}}]]}}; denied=Join[denied,Map[Function[r,{r[[1]],enc[r[[2]],65,r[[3]],r[[4]]],r[[4]]}],excluded],Map[Function[r,{r[[1]]<>\"-info-shape\",enc[2,65,r[[3]],112],112}],excluded]]; ExportString[<|\"allowed\"->allowed,\"denied\"->denied|>,\"RawJSON\",\"Compact\"->True]", |
| 194 | "uapi": { |
| 195 | "repo": "aien-dev/CUDApp", |
| 196 | "path": "third_party/aien-gpu-abi1/aien_gpu_uapi.h", |
| 197 | "commit": "200015e6011d3c517803968fcccab52554c671be", |
| 198 | "sha256": "1071e2a1338d258a654dc96f8c6d637db0e06fb4c47329cd73dc69fdf443eda7" |
| 199 | }, |
| 200 | "spdx": "Apache-2.0 WITH LLVM-exception" |
| 201 | } |