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/amd-exec/fma-probe.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 / amd-exec / fma-probe.om` 41 lines · 666 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Test-only streaming interface: 12-byte little-endian (a,b,c) -> 4-byte result. 3 global fb uchar 12 4 fn fbword p ulong to ulong 5 v = ulong 0 6 for i ulong 4 7 v = or v shl ulong get fb add p i mul i 8 8 end 9 ret v 10 end 11 fn main to int 12 while true bound 999999 13 n = ulong 0 14 while lt n 12 bound 999999 15 r = read 0 fb n sub 12 n 16 if lt r 0 17 ret 74 18 end 19 if eq r 0 20 if eq n 0 21 ret 0 22 end 23 ret 74 24 end 25 n = add n ulong r 26 end 27 v = fpfma fbword 0 fbword 4 fbword 8 28 for i ulong 4 29 put fb i uchar and shr v mul i 8 255 30 end 31 n = 0 32 while lt n 4 bound 999999 33 r = write 1 fb n sub 4 n 34 if le r 0 35 ret 74 36 end 37 n = add n ulong r 38 end 39 end 40 ret 0 41 end