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_cseg.om

19 lines · 447 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2fn vc_seg s view uchar * d edit uchar * r view ulong 4 start ulong to void
3cnt = sub get r 2 start
4if gt cnt 1000000
5cnt = ulong 1000000
6end
7for j ulong cnt
8b = add start j
9idx = add get r 0 b
10v = get s idx
11idx = add get r 1 b
12put d idx v
13end
14end
15fn av_cseg s view uchar * d edit uchar * r view ulong 4 to void
16for bb ulong add div get r 2 1000000 1
17vc_seg s d r mul bb 1000000
18end
19end