Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/tests/speculation/native-channel-test.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / tests / speculation / native-channel-test.om` 52 lines · 1075 bytes Raw Blame History 1 note Physical empty-channel lifecycle. No command packets or GPU kernels submitted. 2 global diag uchar 24 3 text ok "NATIVE_DEVICE_CHANNEL_PASS\n" 4 text bad "NATIVE_DEVICE_CHANNEL_FAIL\n" 5 fn pack off ulong v long to void 6 for i ulong 8 7 put diag add off i uchar and shr v mul i 8 255 8 end 9 end 10 fn ck yes bool to void 11 if not yes 12 pack 0 long get nvstage 0 13 pack 8 get nverr 0 14 closed = nvstop 15 pack 16 long get nvfault 0 16 r = write 2 bad 0 len bad 17 r = write 1 diag 0 len diag 18 exit int 80 19 end 20 end 21 fn main to int 22 for attempt ulong 3 23 ck nvfull 24 ck nvchan 25 ck not nvchan 26 ck eq get nverr 0 neg long 16 27 ck eq get nvsched 0 1 28 ck eq get nvchreg 0 1 29 ck eq get nvput 0 0 30 ck eq mapget get nvfifo 0 8332 4 0 31 ck lt mapaddr get nvfifo 0 `1099511627776` 32 ck not nvdrop get nvfifo 0 33 ck eq get nverr 0 neg long 16 34 put nverr 0 0 35 ck nvstop 36 ck nvstop 37 for i ulong len nvmflag 38 ck eq get nvmflag i 0 39 end 40 for i ulong len nvobj 41 ck eq get nvobj i 0 42 end 43 for i ulong len nvfd 44 ck eq get nvfd i neg int 1 45 end 46 ck eq get nvbar 0 0 47 ck eq get nvchva 0 0 48 ck eq get nvfault 0 0 49 end 50 ck eq write 1 ok 0 len ok long len ok 51 ret 0 52 end