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/tools/tilelab_replay.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 / tools / tilelab_replay.om` 87 lines · 1415 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Concatenate after tools/tilelab_process.om. Usage: DRIVER OUTPUT_PREFIX SHAPES ROUNDS [CFG...] 3 note Current replay, not a historical evidence script. Device driver requires operator GPU authorization. 4 text trwords "--shapes\n--rounds\n--out\n--cfg\n" 5 text trpass "TILELAB_REPLAY PASS\n" 6 fn tr_output group ulong to void 7 tl_arg 2 8 p = get tn 0 9 if gt p 4070 10 exit 90 11 end 12 put tb p 46 13 p = add p 1 14 start = p 15 v = group 16 while true bound 20 17 put tb p uchar add rem v 10 48 18 p = add p 1 19 v = div v 10 20 if eq v 0 21 break 22 end 23 end 24 last = sub p 1 25 while lt start last bound 20 26 x = get tb start 27 put tb start get tb last 28 put tb last x 29 start = add start 1 30 last = sub last 1 31 end 32 put tb p 46 33 put tb add p 1 106 34 put tb add p 2 115 35 put tb add p 3 111 36 put tb add p 4 110 37 put tn 0 add p 5 38 end 39 fn main to int 40 if lt argcnt 5 41 ret 90 42 end 43 for i ulong len trwords 44 put tw i get trwords i 45 end 46 idx = ulong 5 47 group = ulong 0 48 while true bound 999999 49 tl_clear 50 tl_arg 1 51 tl_add 52 tl_word 0 53 tl_add 54 tl_arg 3 55 tl_add 56 tl_word 1 57 tl_add 58 tl_arg 4 59 tl_add 60 tl_word 2 61 tl_add 62 tr_output group 63 tl_add 64 count = ulong 0 65 while and lt idx ulong argcnt lt count 15 bound 15 66 tl_word 3 67 tl_add 68 tl_arg idx 69 tl_add 70 idx = add idx 1 71 count = add count 1 72 end 73 rc = tl_run 74 if ne rc 0 75 ret rc 76 end 77 group = add group 1 78 if ge idx ulong argcnt 79 break 80 end 81 end 82 r = write 1 trpass 0 len trpass 83 if ne r long len trpass 84 ret 93 85 end 86 ret 0 87 end