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-kernel-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-kernel-test.om` 57 lines · 1237 bytes Raw Blame History 1 note Physical seeded Omega vector-kernel qualification, full output checks and safe wrong-math control. 2 global diag uchar 24 3 text ok "NATIVE_SM121_VECTOR_PASS\n" 4 text bad "NATIVE_SM121_VECTOR_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 trial n uint salt ulong wrong bool to void 22 prepare n salt 23 ck gblaunch n 24 verify n salt wrong 25 end 26 fn program wrong bool to void 27 gbvec 28 if wrong 29 note IADD3 R9,R2,RZ safely computes the wrong value while retaining all memory bounds. 30 put gbcode 276 255 31 end 32 m = nvalloc 4096 true 33 ck gt m 0 34 put gbmem 4 m 35 ck eq mapwrite m 0 gbcode 0 get gblen 0 long get gblen 0 36 end 37 fn main to int 38 ck gbopen `1048576` 39 ck not gblaunch 0 40 ck not gblaunch `1048577` 41 trial 1 1 false 42 trial 63 17 false 43 trial 64 31 false 44 trial 65 47 false 45 trial 257 63 false 46 trial 4097 97 false 47 trial 65537 131 false 48 trial `1048576` 257 false 49 program true 50 trial 4097 311 true 51 program false 52 trial 4097 367 false 53 ck nvstop 54 ck eq get nvfault 0 0 55 ck eq write 1 ok 0 len ok long len ok 56 ret 0 57 end