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 / tests / learn53 / stream-check.om

28 lines · 366 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2text expected "HOST_ONLY 0\n"
3global seen uchar 32
4fn main to int
5n = ulong 0
6for j ulong 33
7if ge n 32
8ret 1
9end
10r = read 0 seen n sub 32 n
11if lt r 0
12ret 74
13end
14if eq r 0
15if ne n len expected
16ret 1
17end
18for i ulong n
19if ne get seen i get expected i
20ret 1
21end
22end
23ret 0
24end
25n = add n ulong r
26end
27ret 1
28end