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-channel-test.om

52 lines · 1075 bytes Raw Blame History
1note Physical empty-channel lifecycle. No command packets or GPU kernels submitted.
2global diag uchar 24
3text ok "NATIVE_DEVICE_CHANNEL_PASS\n"
4text bad "NATIVE_DEVICE_CHANNEL_FAIL\n"
5fn pack off ulong v long to void
6for i ulong 8
7put diag add off i uchar and shr v mul i 8 255
8end
9end
10fn ck yes bool to void
11if not yes
12pack 0 long get nvstage 0
13pack 8 get nverr 0
14closed = nvstop
15pack 16 long get nvfault 0
16r = write 2 bad 0 len bad
17r = write 1 diag 0 len diag
18exit int 80
19end
20end
21fn main to int
22for attempt ulong 3
23ck nvfull
24ck nvchan
25ck not nvchan
26ck eq get nverr 0 neg long 16
27ck eq get nvsched 0 1
28ck eq get nvchreg 0 1
29ck eq get nvput 0 0
30ck eq mapget get nvfifo 0 8332 4 0
31ck lt mapaddr get nvfifo 0 1099511627776
32ck not nvdrop get nvfifo 0
33ck eq get nverr 0 neg long 16
34put nverr 0 0
35ck nvstop
36ck nvstop
37for i ulong len nvmflag
38ck eq get nvmflag i 0
39end
40for i ulong len nvobj
41ck eq get nvobj i 0
42end
43for i ulong len nvfd
44ck eq get nvfd i neg int 1
45end
46ck eq get nvbar 0 0
47ck eq get nvchva 0 0
48ck eq get nvfault 0 0
49end
50ck eq write 1 ok 0 len ok long len ok
51ret 0
52end