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

31 lines · 427 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Public fixture emitter, not candidate generation or a heldout task.
3fn main to int
4r = read 0 nums 0 1
5if ne r 1
6ret 64
7end
8mode = ulong get nums 0
9frame
10n = ulong 172
11if eq mode 1
12pw 148 9
13end
14if eq mode 2
15n = 171
16end
17if eq mode 3
18n = 173
19end
20if eq mode 4
21pw 0 4294967295
22end
23if eq mode 5
24pw 60 3
25end
26w = write 1 packet 0 n
27if ne w long n
28ret 74
29end
30ret 0
31end