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 / prefill-shape / reading.om

27 lines · 492 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Reading profile proposal: avoid a second 64-row group for a short request.
3note Options are rt, warps, wait, group. Invalid input returns the u32 sentinel.
4fn native_qgreading rows ulong index ulong to ulong
5if or eq rows 0 gt rows 4294967295
6ret 4294967295
7end
8if gt index 3
9ret 4294967295
10end
11if eq index 0
12if le rows 64
13ret 4
14end
15ret 8
16end
17if eq index 1
18ret 8
19end
20if eq index 2
21ret 45
22end
23if le rows 64
24ret 0
25end
26ret 4
27end