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/native/nvrm/alloc_scalar.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 / native / nvrm / alloc_scalar.om` 11 lines · 322 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note mode 0: slot counter successor (zero refuses overflow); mode 1: existing method encoding. 3 fn nvrm_alloc_scalar mode ulong a ulong b ulong c ulong to ulong 4 if eq mode 1 5 ret nvrm_mthd a b c 6 end 7 if gt a `18446744069414584319` 8 ret 0 9 end 10 ret add a `4294967296` 11 end