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 / pipeline / context.om

28 lines · 761 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Private graph-owned context tuple lookup, not a qualification or artifact schema.
3note Tuple4 is operation kind, layer index, window start, window rows.
4note keys capacity128; up to32 active tuples stride4. Unused cells ignored.
5fn pc_same keys view ulong 128 off ulong actual view ulong 4 to bool
6for j ulong 4
7if ne get keys add off j get actual j
8ret false
9end
10end
11ret true
12end
13note Return unique 1-based context ordinal,0 absent,-1 invalid count/duplicate match.
14fn native_context keys view ulong 128 count ulong actual view ulong 4 to long
15if gt count 32
16ret -1
17end
18hit = long 0
19for i ulong count
20if pc_same keys mul i 4 actual
21if ne hit 0
22ret -1
23end
24hit = long add i 1
25end
26end
27ret hit
28end