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 / om / cmdlist / book.om

23 lines · 504 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Command-list lifetime decisions. Inputs follow clbook in the C shell:
3note op 0 generation,recoveries,epoch,current epoch; op 1 latch,recoveries.
4const WMASK ulong 4294967295
5const REFUSED ulong 18446744073709551615
6
7fn book op ulong a view ulong 16 o edit ulong 4 to ulong
8if eq op 0
9if eq get a 0 get a 1
10if eq get a 2 get a 3
11ret 0
12end
13end
14ret 1
15end
16if eq op 1
17if eq get a 0 and add get a 1 1 WMASK
18ret 1
19end
20ret 0
21end
22ret REFUSED
23end