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

16 lines · 427 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Existing router u32 little-endian picks to ABI1 logical ulong words.
3note n counts active entries, not tokens; no masking or expert validation here.
4fn moe_ids32 src view uchar 4096 n ulong ids edit ulong 1024 to ulong
5if gt n 1024
6ret 1
7end
8for i ulong n
9v = ulong 0
10for b ulong 4
11v = or v shl ulong get src add mul i 4 b mul b 8
12end
13put ids i v
14end
15ret 0
16end