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