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 / core / fmtclip.om

11 lines · 205 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn omclip cap ulong used ulong n ulong to ulong
3if ge add used 1 cap
4ret 0
5end
6space = sub sub cap used 1
7if gt n space
8ret space
9end
10ret n
11end