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
CUDApp / om / api / attn_touch.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | fn av_touch ids view uint 1000000 slots view uint * touched edit uint * g ulong to ulong |
| 3 | for j ulong len ids |
| 4 | id = get ids j |
| 5 | idx = ulong get slots ulong id |
| 6 | if ge idx g |
| 7 | put touched idx id |
| 8 | end |
| 9 | end |
| 10 | ret 0 |
| 11 | end |