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 / copy.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | fn arcopy x view uchar * y edit uchar * to ulong |
| 4 | if gt len x len y |
| 5 | ret 1 |
| 6 | end |
| 7 | for i ulong 18446744073709551615 |
| 8 | if ge i len x |
| 9 | break |
| 10 | end |
| 11 | put y i get x i |
| 12 | end |
| 13 | ret 0 |
| 14 | end |