interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / om / gemm-any / ollm.om

35 lines · 984 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Own Omega LLM forward GEMM policy. Compose with host.om and gemm_ir.om.
3note x is the existing gemm_host_plan wire: type rt ct wm wn stall mutant band M N K layout ...
4note Inference only. Caller rounds finite f32 operands RNE to BF16 before PACK, never master weights.
5note mode 0 keeps exact f32 FFMA; mode 1 selects BF16 with FP32 tensor accumulate.
6note Decode uses 16x8/32 threads so D384 exposes 48 column CTAs rather than 3.
7note Prefill uses the existing measured 64x128/256-thread default. Shared memory is zero.
8note Tensor instruction grouping and FP32 epilogue are unchanged by geometry or double buffering.
9fn gemm_ollm_cfg x edit ulong 32 mode ulong to ulong
10if gt mode 1
11ret 1
12end
13put x 0 3
14put x 1 1
15put x 2 1
16put x 3 1
17put x 4 1
18put x 5 4
19put x 6 0
20put x 7 0
21if eq mode 1
22put x 0 0
23if ge get x 8 64
24put x 1 2
25put x 2 4
26put x 3 2
27put x 4 4
28put x 7 8
29end
30end
31if eq gemm_host_cfg x 0
32ret 1
33end
34ret 0
35end