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 / avv-z64.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note gpu/nvidia/checks/avv-z64.om: av_z64 (gpu/nvidia/om/api/attn_z64.om) against av_zero64 of CUDApp src/omega_attn_views.h; |
| 3 | note A is ulong; r counts the zeros among the first n; h over A. An ulong array of 4 MiB holds 524288, so no row reaches the 1000000 block edge. Composed before avv.om (its rows and the A, B, v, r, h they name). |
| 4 | text t_name "AVV-Z64" |
| 5 | text t_au "z64" |
| 6 | fn cname to void |
| 7 | for i ulong len t_name bound 64 |
| 8 | ckoc ulong get t_name i |
| 9 | end |
| 10 | end |
| 11 | fn avcap to ulong |
| 12 | ret 500001 |
| 13 | end |
| 14 | fn avop a view ulong 9 b view ulong 9 l ulong n ulong v ulong o edit ulong 2 to void |
| 15 | s = new ulong 500001 0 |
| 16 | avgl s a l |
| 17 | put o 0 av_z64 s n |
| 18 | put o 1 avhl s l |
| 19 | end |