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 / models / mxdot-capacity.om

69 lines · 1090 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Full-width dimensions reach the real library entry, unlike the byte-sized wire fixture.
3note Input is one scenario byte. Refused scenarios must exit with trap 5.
4fn main to int
5mode = new uchar 1 0
6if ne read 0 mode 0 1 1
7ret 1
8end
9a = new uchar 4096 0
10b = new uchar 4096 0
11sa = new uchar 256 0
12sb = new uchar 256 0
13c = new f64 256 1.0f64
14d = new ulong 4 0
15put d 1 16
16put d 2 16
17put d 3 16
18if eq get mode 0 1
19put d 1 9223372036854775808
20put d 2 2
21put d 3 32
22end
23if eq get mode 0 2
24put d 1 0
25put d 2 9223372036854775808
26put d 3 32
27end
28if eq get mode 0 3
29put d 1 9223372036854775808
30put d 2 0
31put d 3 32
32end
33if eq get mode 0 4
34put d 1 0
35put d 2 1
36end
37if eq get mode 0 5
38put d 1 1
39put d 2 0
40end
41if eq get mode 0 6
42put d 1 17
43end
44if eq get mode 0 7
45put d 1 129
46put d 2 0
47put d 3 32
48end
49if eq get mode 0 8
50put d 0 2
51put d 1 1
52put d 2 0
53put d 3 8192
54end
55mxmm a sa b sb c d
56if eq get mode 0 0
57for i ulong 256
58if ne get c i 0.0f64
59ret 2
60end
61end
62end
63if or eq get mode 0 4 eq get mode 0 5
64if ne get c 0 1.0f64
65ret 3
66end
67end
68ret 0
69end