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 / gemm_policy.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note gpu/nvidia/checks/gemm_policy.om: the Omega port of CUDApp tests/gemm_ex_policy_test.c. Composed after |
| 3 | note gpu/nvidia/om/gemmex/policy.om and gpu/nvidia/checks/lib.om; run with gpu/nvidia/checks/gemm_policy.tsv, whose |
| 4 | note expected values the retained C host policy (gx_min, gx_arow, gx_bcol, gx_brow, gx_pack of |
| 5 | note src/omega_gpu_gemm_ex.c with CUDAPP_MIGRATION_PENDING_C_GEMM_EX_HOST_POLICY) and the test's own formulas for |
| 6 | note ops 4, 5 and 6 wrote over the old differential's whole domain, each distinct case once. |
| 7 | note Case: OP A B C D WANT. gemm_ex_policy OP A B C D must return WANT. |
| 8 | text t_name "GEMM_POLICY" |
| 9 | fn cname to void |
| 10 | for i ulong len t_name bound 64 |
| 11 | ckoc ulong get t_name i |
| 12 | end |
| 13 | end |
| 14 | fn crow to bool |
| 15 | if ne ckcnt 6 |
| 16 | ckbad |
| 17 | end |
| 18 | ret eq gemm_ex_policy cknum 0 cknum 1 cknum 2 cknum 3 cknum 4 cknum 5 |
| 19 | end |