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 / consume.om

39 lines · 1101 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Actual graph admission caller for Main's existing graph/command-list owner.
3note Must be invoked under existing session lock with trusted immutable bundle.
4note The selected canonical real comes from the owner's qualified registry.
5fn pl_checkrow a view ulong 1024 want view uchar 4096 real view uchar 4096 sel view ulong 16 to int
6row = new ulong 64 0
7base = mul get sel 1 64
8for j ulong 64
9put row j get a add base j
10end
11ret pl_realcheck want real row
12end
13fn pl_finish q view ulong 64 a view ulong 1024 p edit ulong 528 sel edit ulong 16 out edit ulong 32 to int
14lease = new ulong 16 0
15rc = pl_selected q a p sel lease
16if ne rc 0
17ret rc
18end
19for j ulong 16
20put out j get sel j
21put out add j 16 get lease j
22end
23ret 0
24end
25fn pl_graph q view ulong 64 a view ulong 1024 p edit ulong 528 want view uchar 4096 real view uchar 4096 out edit ulong 32 to int
26sel = new ulong 16 0
27for j ulong 32
28put out j 0
29end
30rc = pl_select q a sel
31if ne rc 0
32ret rc
33end
34rc = pl_checkrow a want real sel
35if ne rc 0
36ret rc
37end
38ret pl_finish q a p sel out
39end