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

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