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 / avv-comp.om

24 lines · 810 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/avv-comp.om: av_comp (gpu/nvidia/om/api/attn_comp.om) against av_compact32 of CUDApp src/omega_attn_views.h;
3note A (int32 bits) and B are uint; the first n of A that are not negative go to the front of B, r their count; h over B. Composed before avv.om (its rows and the A, B, v, r, h they name).
4text t_name "AVV-COMP"
5text t_au "comp"
6fn cname to void
7for i ulong len t_name bound 64
8ckoc ulong get t_name i
9end
10end
11fn avcap to ulong
12ret 1000003
13end
14fn avop a view ulong 9 b view ulong 9 l ulong n ulong v ulong o edit ulong 2 to void
15s = new uint 1000003 0
16avgu s a l
17avop2 s b l n o
18end
19fn avop2 s view uint * b view ulong 9 l ulong n ulong o edit ulong 2 to void
20d = new uint 1000003 0
21avgu d b l
22put o 0 av_comp s d n
23put o 1 avhu d l
24end