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 / gpu / nvidia / checks / arest-sstats.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note gpu/nvidia/checks/arest-sstats.om: arsstats (gpu/nvidia/om/apirest/sstats.om), as state_parts() of CUDApp |
| 3 | note tests/api_rest_partitions.h calls it. Q its 8 q words and the 7 stats; the 12 outputs. Composed before |
| 4 | note arestg.om. |
| 5 | text t_name "AREST-SSTATS" |
| 6 | text t_sstats "sstats" |
| 7 | fn arop q view ulong 256 nq ulong ny ulong o edit ulong 256 to ulong |
| 8 | if or ne nq 15 not ckis 0 t_sstats |
| 9 | ckbad |
| 10 | end |
| 11 | a = new ulong 8 0 |
| 12 | for i ulong 8 |
| 13 | put a i get q i |
| 14 | end |
| 15 | st = new ulong 7 0 |
| 16 | for i ulong 7 |
| 17 | put st i get q add 8 i |
| 18 | end |
| 19 | y = new ulong 12 0x5a5a5a5a5a5a5a5a |
| 20 | r = arsstats a st y |
| 21 | for i ulong 12 |
| 22 | put o i get y i |
| 23 | end |
| 24 | ret r |
| 25 | end |