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 / session / park.om

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