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 / gemm_policy.om

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