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_hmap.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_hmap.om` 36 lines · 592 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 fn vc_hmap d edit uint * q view ulong 16 to ulong 3 p = new ulong 16 0 4 for j ulong 5 5 put p j get q j 6 end 7 for jj ulong get q 7 8 i = add get q 6 jj 9 put p 0 i 10 rc = api_at_plan 25 p 11 if ne rc 0 12 ret rc 13 end 14 put d i uint get p 8 15 end 16 ret 0 17 end 18 fn av_hmap d edit uint * q view ulong 16 to ulong 19 z = new ulong 16 0 20 for j ulong 16 21 put z j get q j 22 end 23 for bb ulong add div get q 1 `1000000` 1 24 put z 6 mul bb `1000000` 25 cnt = sub get q 1 get z 6 26 if gt cnt `1000000` 27 cnt = ulong `1000000` 28 end 29 put z 7 cnt 30 rc = vc_hmap d z 31 if ne rc 0 32 ret rc 33 end 34 end 35 ret 0 36 end