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