interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / tests / host-trace / fakedev.om

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