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 / speculation / native-launch-data.om

53 lines · 741 bytes Raw Blame History
1note Host-only launch-data differential. The managed address reservations touch no GPU.
2fn main to int
3gbvec
4if ne write 1 gbcode 0 get gblen 0 512
5ret 80
6end
7for trial ulong 5
8base = add 68719476736 mul trial 1073741824
9for i ulong 8
10h = maphold add base mul i 65536 65536
11if le h 0
12ret 81
13end
14put gbmem i h
15end
16n = uint 1
17if eq trial 1
18n = uint 63
19end
20if eq trial 2
21n = uint 64
22end
23if eq trial 3
24n = uint 65
25end
26if eq trial 4
27n = uint 4097
28end
29gbqmd n
30put gbused 0 0
31for i ulong 224
32gbemit get gbcb i
33end
34for i ulong 96
35gbemit get gbq0 i
36end
37for i ulong 96
38gbemit get gbq1 i
39end
40for i ulong 7
41gbemit get gbargs i
42end
43if ne write 1 gbcmd 0 get gbused 0 1692
44ret 82
45end
46for i ulong 8
47if ne mapdrop get gbmem i 0
48ret 83
49end
50end
51end
52ret 0
53end