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 / native / nvrm / alloc_scalar.om

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