interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / gpu / nvidia / checks / arest-sstats.om

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