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

19 lines · 698 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/avv-cntf.om: av_cntf (gpu/nvidia/om/api/attn_cntf.om) against av_countf32 of CUDApp src/omega_attn_views.h;
3note A is f32; r counts the first n equal (as floats: -0 = 0, NaN unequal) to the f32 of bits v; h over A. Composed before avv.om (its rows and the A, B, v, r, h they name).
4text t_name "AVV-CNTF"
5text t_au "cntf"
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 f32 1000003 f32 0
16avgf s a l
17put o 0 av_cntf s n bitcast f32 uint and v 4294967295
18put o 1 avhf s l
19end