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/support.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 / support.om` 64 lines · 1275 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Synthetic test support. None of these values are hardware observations. 3 global tally ulong 2 4 global digits uchar 32 5 text passmsg "SPECULATION_TESTS_PASS " 6 text failmsg "SPECULATION_TESTS_FAIL " 7 fn number n ulong to void 8 if ge n 10 9 number div n 10 10 end 11 put digits 0 uchar add 48 rem n 10 12 w = write 1 digits 0 1 13 end 14 fn check yes bool to void 15 put tally 0 add get tally 0 1 16 if not yes 17 put tally 1 add get tally 1 1 18 number get tally 0 19 put digits 0 10 20 w = write 1 digits 0 1 21 end 22 end 23 fn finish to int 24 if ne get tally 1 0 25 w = write 1 failmsg 0 len failmsg 26 number get tally 1 27 put digits 0 10 28 w = write 1 digits 0 1 29 ret 1 30 end 31 w = write 1 passmsg 0 len passmsg 32 number get tally 0 33 put digits 0 10 34 w = write 1 digits 0 1 35 ret 0 36 end 37 fn fixture to void 38 for i ulong 64 39 put sid i add rem i 32 1 40 end 41 for i ulong 77 42 put srows i 0 43 end 44 put sprofile 0 1 45 put sprofile 1 7 46 put sprofile 2 1000 47 put sprofile 3 33000 48 put sprofile 4 1 49 put sprofile 5 1 50 for r ulong 7 51 base = mul r 11 52 put srows base 1 53 put srows add base 1 slen r 54 put srows add base 2 add slen r 1 55 put srows add base 4 100 56 put srows add base 8 1 57 put srows add base 9 add 100 mul r 10 58 put srows add base 10 5 59 end 60 for i ulong 31 61 put sprior i `1000000` 62 end 63 check eq sbegin 0 0 64 end