Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/pipeline/context.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / pipeline / context.om` 28 lines · 761 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Private graph-owned context tuple lookup, not a qualification or artifact schema. 3 note Tuple4 is operation kind, layer index, window start, window rows. 4 note keys capacity128; up to32 active tuples stride4. Unused cells ignored. 5 fn pc_same keys view ulong 128 off ulong actual view ulong 4 to bool 6 for j ulong 4 7 if ne get keys add off j get actual j 8 ret false 9 end 10 end 11 ret true 12 end 13 note Return unique 1-based context ordinal,0 absent,-1 invalid count/duplicate match. 14 fn native_context keys view ulong 128 count ulong actual view ulong 4 to long 15 if gt count 32 16 ret -1 17 end 18 hit = long 0 19 for i ulong count 20 if pc_same keys mul i 4 actual 21 if ne hit 0 22 ret -1 23 end 24 hit = long add i 1 25 end 26 end 27 ret hit 28 end