Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/prefill-shape/reading.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / prefill-shape / reading.om` 27 lines · 492 bytes Raw Blame History 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