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 / core / fmtclip.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn omclip cap ulong used ulong n ulong to ulong |
| 3 | if ge add used 1 cap |
| 4 | ret 0 |
| 5 | end |
| 6 | space = sub sub cap used 1 |
| 7 | if gt n space |
| 8 | ret space |
| 9 | end |
| 10 | ret n |
| 11 | end |