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 / q38-head / emit.om

19 lines · 475 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Generated bounds kernel through the checked allocator and encoder.
3fn q38_emit code edit uchar 16384 to ulong
4ins = new ulong 8192 0
5meta = new ulong 2048 0
6phys = new ulong 288 0
7st = new ulong 4 0
8rs = new ulong 4 0
9if ne q38_bounds ins meta st 0
10ret 0
11end
12if ne bc_ircheck ins get st 0 meta 0
13ret 0
14end
15if ne bc_regalloc ins get st 0 meta phys rs 128 0
16ret 0
17end
18ret bc_encode ins phys get st 0 1 code
19end