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 / apirest / pfcopy.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn arpfcopy q view ulong 4 w view uchar * y edit uchar * to ulong |
| 3 | for p ulong 4294967296 |
| 4 | if ge p get q 0 |
| 5 | break |
| 6 | end |
| 7 | src = p |
| 8 | if eq get q 2 1 |
| 9 | src = swsrc uint p uint get q 0 |
| 10 | end |
| 11 | a = mul src get q 1 |
| 12 | b = mul p get q 1 |
| 13 | for c ulong 4294967296 |
| 14 | if ge c get q 1 |
| 15 | break |
| 16 | end |
| 17 | put y add b c get w add a c |
| 18 | end |
| 19 | end |
| 20 | ret 0 |
| 21 | end |