interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / om / api / attn_hmap.om

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