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_reset.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_reset.om` 26 lines · 531 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 fn vc_reset slots edit uint * ids view uint * zz view ulong 4 to ulong 3 for jj ulong get zz 1 4 i = add get zz 0 jj 5 put slots ulong get ids i uint `4294967295` 6 end 7 ret 0 8 end 9 fn av_reset slots edit uint * ids view uint * n ulong to ulong 10 zz = new ulong 4 0 11 put zz 2 n 12 r = ulong 0 13 for bb ulong add div n `1000000` 1 14 put zz 0 mul bb `1000000` 15 cnt = sub n get zz 0 16 if gt cnt `1000000` 17 cnt = ulong `1000000` 18 end 19 put zz 1 cnt 20 rr = vc_reset slots ids zz 21 if ne rr 0 22 ret rr 23 end 24 end 25 ret r 26 end