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
CUDApp / om / api / attn_stage.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn av_stage s view uchar * d edit uchar * ids view uint 16777216 q view ulong 16 to ulong |
| 3 | r = new ulong 4 0 |
| 4 | put r 2 get q 3 |
| 5 | for i ulong get q 0 |
| 6 | src = ulong get ids i |
| 7 | src = mul src get q 1 |
| 8 | src = add src get q 2 |
| 9 | dst = add get q 4 i |
| 10 | dst = mul dst get q 3 |
| 11 | put r 0 src |
| 12 | put r 1 dst |
| 13 | av_cseg s d r |
| 14 | end |
| 15 | ret 0 |
| 16 | end |