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 / tests / host-trace / fakedev.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note HOST STAND-IN device step for tests/host-trace/fakenv.om; compose after launch.om. It computes |
| 3 | note the VECTOR_1D result on the CPU (c = a + b mod 2^32 over gbargs 6 elements) and writes the two |
| 4 | note completion marks and the queue value that gblaunch checks. Not a GPU observation. |
| 5 | fn fkdev mark uint to void |
| 6 | n = ulong get gbargs 6 |
| 7 | for i ulong n |
| 8 | a = mapget get gbmem 5 mul i 4 4 |
| 9 | b = mapget get gbmem 6 mul i 4 4 |
| 10 | r = mapset get gbmem 7 mul i 4 4 and add a b 4294967295 |
| 11 | end |
| 12 | r = mapset get gbmem 3 0 4 ulong mark |
| 13 | r = mapset get gbmem 2 8192 4 6 |
| 14 | r = mapset get gbmem 3 16 4 1179010630 |
| 15 | end |