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/api/attn_fillf.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 / api / attn_fillf.om` 26 lines · 516 bytes Raw Blame History 1 om2 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 note Inner traversal blocks preserve the checked one-million-iteration guard. 4 fn vc_fillf d edit f32 * q view ulong 4 v f32 to ulong 5 for zzj ulong get q 1 6 i = add get q 0 zzj 7 put d i v 8 end 9 ret 0 10 end 11 12 fn av_fillf d edit f32 * n ulong v f32 to ulong 13 q = new ulong 4 0 14 r = ulong 0 15 for zzb ulong add div n `1000000` 1 16 put q 0 mul zzb `1000000` 17 zzn = sub n get q 0 18 if gt zzn `1000000` 19 zzn = ulong `1000000` 20 end 21 put q 1 zzn 22 rr = vc_fillf d q v 23 r = rr 24 end 25 ret r 26 end