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 / native / nvrm / heap_wire.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note NVOS32_PARAMETERS heap information, vendored nvos.h; sizeof184, data.Info.attr40. |
| 3 | fn nvrm_heap_wire a view ulong 16 b edit uchar 184 to ulong |
| 4 | for i ulong 184 |
| 5 | put b i 0 |
| 6 | end |
| 7 | for i ulong 4 |
| 8 | v = get a i |
| 9 | off = mul i 4 |
| 10 | if eq i 3 |
| 11 | off = 40 |
| 12 | end |
| 13 | for j ulong 4 |
| 14 | put b add off j uchar and shr v mul j 8 255 |
| 15 | end |
| 16 | end |
| 17 | ret 184 |
| 18 | end |