Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/cmdlist/book.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / cmdlist / book.om` 23 lines · 504 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Command-list lifetime decisions. Inputs follow clbook in the C shell: 3 note op 0 generation,recoveries,epoch,current epoch; op 1 latch,recoveries. 4 const WMASK ulong `4294967295` 5 const REFUSED ulong `18446744073709551615` 6 7 fn book op ulong a view ulong 16 o edit ulong 4 to ulong 8 if eq op 0 9 if eq get a 0 get a 1 10 if eq get a 2 get a 3 11 ret 0 12 end 13 end 14 ret 1 15 end 16 if eq op 1 17 if eq get a 0 and add get a 1 1 WMASK 18 ret 1 19 end 20 ret 0 21 end 22 ret REFUSED 23 end