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 / apish-fp8xb.om

19 lines · 568 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note gpu/nvidia/checks/apish-fp8xb.om: the xbf16 comparisons of CUDApp tests/api_shells_diff.c, for av_fp8xb
3note (gpu/nvidia/om/apiviews/fp8xb.om), which the test reaches as omega_fp8_pack_x_bf16. x is the test's
4note 0x3f80 + i. Composed before apish-lib.om.
5text t_name "APISH-FP8XB"
6text l_xbf16 "xbf16"
7fn aprun to void
8x = new ushort 32 0
9for i ulong 32
10put x i ushort add 0x3f80 i
11end
12y = new f32 32 0.0f32
13if ne av_fp8xb part x 0 32 part y 0 32 0
14ckbad
15end
16for i ulong 32
17as3 l_xbf16 ulong bitcast uint get y i
18end
19end