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/om/numeric/trace.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 / om / numeric / trace.om` 69 lines · 1200 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note tr[0..7] is OmegaParityTrace, 8=index, 9=compare, 3 note 11=present buffers, 12=FP environment. Modes init parity/seed, step parity/seed. 4 fn trpar tr edit ulong 16 ex ulong got ulong ix ulong to ulong 5 put tr 0 add get tr 0 1 6 if eq get tr 9 0 7 if eq nrclass 4 ex 1 8 put tr 5 add get tr 5 1 9 end 10 end 11 if eq cmpeq get tr 9 ex got 0 12 if eq get tr 1 0 13 put tr 2 ix 14 put tr 3 ex 15 put tr 4 got 16 end 17 put tr 1 add get tr 1 1 18 end 19 ret 0 20 end 21 fn trseed tr edit ulong 16 r ulong got ulong ix ulong to ulong 22 if eq r 0 23 put tr 7 add get tr 7 1 24 else 25 put tr 0 add get tr 0 1 26 if eq and r 3 2 27 if eq get tr 6 0 28 put tr 2 ix 29 put tr 3 shr r 32 30 put tr 4 got 31 end 32 put tr 6 add get tr 6 1 33 end 34 end 35 ret 0 36 end 37 fn numeric_trace mode ulong op ulong ex ulong got ulong tr edit ulong 16 to ulong 38 if lt mode 2 39 if or ge op 42 ne get tr 11 1 40 ret 1 41 end 42 if eq mode 1 43 if ne get tr 9 2 44 ret 3 45 end 46 if ne get tr 12 1 47 ret 5 48 end 49 end 50 for k ulong 8 51 put tr k 0 52 end 53 put tr 2 `18446744073709551615` 54 if and eq mode 0 eq get tr 9 2 55 ret 3 56 end 57 ret 0 58 end 59 if eq mode 2 60 if eq op 18 61 if ne rem get tr 8 32 0 62 ret 0 63 end 64 end 65 ret trpar tr ex got get tr 8 66 end 67 r = nrseed op ex got 68 ret trseed tr r got get tr 8 69 end