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 / api / attn_stage.om

16 lines · 365 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn av_stage s view uchar * d edit uchar * ids view uint 16777216 q view ulong 16 to ulong
3r = new ulong 4 0
4put r 2 get q 3
5for i ulong get q 0
6src = ulong get ids i
7src = mul src get q 1
8src = add src get q 2
9dst = add get q 4 i
10dst = mul dst get q 3
11put r 0 src
12put r 1 dst
13av_cseg s d r
14end
15ret 0
16end