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 / native / abft / sched.om

68 lines · 1222 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note CUDApp#55 schedule perturbation admission. The evaluator validates every frozen row before any
3note fork; a refused row never runs. Reason codes (docs/abft/CONTRACT.md section 7):
4note 0 accepted, 1 unknown policy, 2 target worker out of range, 3 atomic site unsupported (69),
5note 4 device instruction-stream site unsupported: no qualified delay opcode (69),
6note 5 wait removal without the known-bad control label, 6 shape or worker bounds, 7 transposed index
7note fault on a non-square shape, 8 delay policy without a site, 9 hang control with one worker.
8fn sreason to ulong
9m = kf KM
10n = kf KN
11k = kf KK
12w = kf KW
13if gt kf KPOL 3
14ret 1
15end
16if ge kf KPOL 2
17if ge kf KTGT w
18ret 2
19end
20end
21if eq kf KSITE 4
22ret 3
23end
24if gt kf KSITE 4
25ret 4
26end
27if eq kf KFLT 5
28if eq and kf KFLG 2 0
29ret 5
30end
31end
32if or eq w 0 gt w 64
33ret 6
34end
35if or or eq m 0 gt m 256 or eq n 0 gt n 256
36ret 6
37end
38if or eq k 0 gt k 256
39ret 6
40end
41if fis 4 2
42if ne n k
43ret 7
44end
45end
46if eq kf KPOL 3
47if eq kf KSITE 0
48ret 8
49end
50end
51if eq kf KFLT 5
52if eq kf KSUB 4
53if lt w 2
54ret 9
55end
56end
57end
58ret 0
59end
60fn sstatus r ulong to ulong
61if eq r 0
62ret 0
63end
64if or eq r 3 eq r 4
65ret 69
66end
67ret 65
68end