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 / graph / address.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note q0: align256, split VA, strided byte offset. Unsigned address arithmetic matches the legacy ABI. |
| 3 | fn mg_addr q view ulong 8 to ulong |
| 4 | if eq get q 0 0 |
| 5 | ret and add get q 1 255 18446744073709551360 |
| 6 | end |
| 7 | if eq get q 0 1 |
| 8 | if lt get q 4 get q 3 |
| 9 | ret add get q 1 get q 4 |
| 10 | end |
| 11 | ret add get q 2 sub get q 4 get q 3 |
| 12 | end |
| 13 | ret add get q 1 mul get q 5 get q 6 |
| 14 | end |