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 / authority / capq.om
| 1 | note SPDX-License-Identifier: AGPL-3.0-only |
| 2 | note Select CPU (0) or GB10 (1) for a single sparse hop. Compose after |
| 3 | note om/runtime/rx_capq_core.om. The authority owns receipt authentication |
| 4 | note and qualification. Pass only observations it verified for this request. |
| 5 | note Key words: SHA-256 of workload, software identities, machine and math |
| 6 | note contract (four words), followed by nodes, arcs, batch and model variant. |
| 7 | note Rows append backend (0/1), count of paired measurements, end-to-end |
| 8 | note median nanoseconds and median microjoules. Zero metrics mean unavailable. |
| 9 | note Strictly lower latency plus non-increasing energy qualifies the GPU. |
| 10 | fn ar_observed key view ulong 8 row view ulong 12 backend ulong to bool |
| 11 | for i ulong 8 |
| 12 | if ne get row i get key i |
| 13 | ret false |
| 14 | end |
| 15 | end |
| 16 | if ne get row 8 backend |
| 17 | ret false |
| 18 | end |
| 19 | ret and ne get row 9 0 and ne get row 10 0 ne get row 11 0 |
| 20 | end |
| 21 | |
| 22 | fn arboris_capq key view ulong 8 cpu view ulong 12 gpu view ulong 12 to ulong |
| 23 | if eq or get key 0 or get key 1 or get key 2 get key 3 0 |
| 24 | ret 0 |
| 25 | end |
| 26 | if or eq get key 4 0 or eq get key 6 0 gt get key 7 1 |
| 27 | ret 0 |
| 28 | end |
| 29 | if or not ar_observed key cpu 0 not ar_observed key gpu 1 |
| 30 | ret 0 |
| 31 | end |
| 32 | if or ne get cpu 9 get gpu 9 ge get gpu 10 get cpu 10 |
| 33 | ret 0 |
| 34 | end |
| 35 | a = new ulong 7 0 |
| 36 | b = new ulong 7 0 |
| 37 | dims = new uchar 7 0 |
| 38 | put dims 1 1 |
| 39 | for i ulong 2 |
| 40 | put a i get gpu add i 10 |
| 41 | put b i get cpu add i 10 |
| 42 | end |
| 43 | ret rx_cq_dominates a b dims 2 |
| 44 | end |