interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / gpu / nvidia / 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