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 / session / park.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Parked-buffer scan from src/omega_gpu_session.c. A buffer is still parked |
| 3 | note when its handle index and generation both match a live slot. Pure lookup: |
| 4 | note the C shell owns the parked table and the generation bump. |
| 5 | fn scan idx view ulong 512 gen view ulong 512 want ulong wgen ulong to ulong |
| 6 | i = ulong 0 |
| 7 | while lt i 512 |
| 8 | if eq get idx i want |
| 9 | if eq get gen i wgen |
| 10 | ret 1 |
| 11 | end |
| 12 | end |
| 13 | i = add i 1 |
| 14 | end |
| 15 | ret 0 |
| 16 | end |