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/native_observer_run.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 / native_observer_run.om` 55 lines · 1394 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note HOST_ONLY real cmdlist projection oracle; no GPU, admission or qualification claim. 3 note Compose locked MC dependencies, canonical moe-closure.om, cases.om, then this file. 4 note stdin exactly: frozen independent C SHA256 root32, meta32 LE64, submit16 LE64, 5 note actual owner bank1024, actual owner QMD slot1024. No header or trailing bytes. 6 note Expected preimage is frozen before mutation; observed bytes come from same-list post-add state. 7 text NOPass "NATIVE_OBSERVER HOST_ONLY PASS\n" 8 fn no_word b view uchar 2464 off ulong to ulong 9 v = ulong 0 10 for j ulong 8 11 v = or v shl ulong get b add off j mul j 8 12 end 13 ret v 14 end 15 fn main to int 16 wire = new uchar 2464 0 17 want = new uchar 32 0 18 m = new ulong 32 0 19 s = new ulong 16 0 20 bank = new uchar 1024 0 21 qmd = new uchar 1024 0 22 extra = new uchar 1 0 23 pos = ulong 0 24 while lt pos 2464 bound 2464 25 n = read 0 wire pos sub ulong 2464 pos 26 if le n 0 27 ret 30 28 end 29 pos = add pos ulong n 30 end 31 n = read 0 extra 0 1 32 if ne n 0 33 ret 31 34 end 35 for i ulong 32 36 put want i get wire i 37 put m i no_word wire add 32 mul i 8 38 end 39 for i ulong 16 40 put s i no_word wire add 288 mul i 8 41 end 42 for i ulong 1024 43 put bank i get wire add 416 i 44 put qmd i get wire add 1440 i 45 end 46 rc = no_cases edit m edit bank edit qmd edit s want 47 if ne rc 0 48 ret int rc 49 end 50 n = write 1 NOPass 0 len NOPass 51 if ne n long len NOPass 52 ret 32 53 end 54 ret 0 55 end