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 / moe-wide / moe_ids32_wide.om

17 lines · 525 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note moe_ids32 at wide capacity: router u32 little-endian picks to logical ulong words.
3note 1280 entries = 128 tokens * 10 routed picks. n counts active entries, not tokens.
4note No masking or expert validation here; moe_plan_wide validates ids.
5fn moe_ids32_wide src view uchar 5120 n ulong ids edit ulong 1280 to ulong
6if gt n 1280
7ret 1
8end
9for i ulong n
10v = ulong 0
11for b ulong 4
12v = or v shl ulong get src add mul i 4 b mul b 8
13end
14put ids i v
15end
16ret 0
17end