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-calc.om

20 lines · 603 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/arest-calc.om: arcalc (gpu/nvidia/om/apirest/calc.om), ops 0 to 13, as calc_parts() of
3note CUDApp tests/api_rest_partitions.h and prefill() of tests/api_rest_diff.c call it. Q is its 32 q words; q
4note after the call is output 128 on. Composed before arestg.om.
5text t_name "AREST-CALC"
6text t_calc "calc"
7fn arop q view ulong 256 nq ulong ny ulong o edit ulong 256 to ulong
8if or ne nq 32 not ckis 0 t_calc
9ckbad
10end
11a = new ulong 32 0
12for i ulong 32
13put a i get q i
14end
15r = arcalc a
16for i ulong 32
17put o add 128 i get a i
18end
19ret r
20end