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 / victim.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | fn ar_vfree q view ulong 8 x view uchar * j ulong to ulong |
| 4 | b = mul j get q 1 |
| 5 | if eq get x add b get q 2 0 |
| 6 | ret 1 |
| 7 | end |
| 8 | if eq get x add b get q 3 0 |
| 9 | ret 1 |
| 10 | end |
| 11 | ret 0 |
| 12 | end |
| 13 | fn arvictim q edit ulong 8 x view uchar * to ulong |
| 14 | for i ulong get q 0 |
| 15 | j = rem add get q 4 i get q 0 |
| 16 | if ne ar_vfree q x j 0 |
| 17 | put q 4 rem add j 1 get q 0 |
| 18 | ret j |
| 19 | end |
| 20 | end |
| 21 | ret 18446744073709551615 |
| 22 | end |