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/core/payload.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 / core / payload.om` 75 lines · 1211 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Copyright 2026 Drake Stapleton 3 fn pwr p edit uchar 1024 off ulong x ulong n ulong to void 4 for i ulong n 5 put p add off i uchar and shr x mul i 8 255 6 end 7 end 8 fn pid p edit uchar 1024 off ulong ids view uchar 96 which ulong to void 9 for i ulong 32 10 put p add off i uchar ulong get ids add mul which 32 i 11 end 12 end 13 fn ompay p edit uchar 1024 ids view uchar 96 v view ulong 8 mode ulong to ulong 14 if eq mode 0 15 for i ulong 44 16 put p i uchar 0 17 end 18 pwr p 0 get v 0 4 19 pwr p 4 get v 1 2 20 pwr p 8 get v 2 4 21 pid p 12 ids 0 22 ret 44 23 end 24 if le mode 2 25 for i ulong 98 26 put p i uchar 0 27 end 28 pid p 0 ids 0 29 n = ulong 0 30 if eq mode 1 31 n = 1 32 put p 34 uchar get v 1 33 end 34 if eq mode 2 35 n = div add get v 0 7 8 36 if eq n 0 37 n = 1 38 end 39 if gt n 64 40 n = 64 41 end 42 for i ulong n 43 s = mul sub sub n i 1 8 44 if lt s 64 45 put p add 34 i uchar and shr get v 1 s 255 46 end 47 end 48 end 49 pwr p 32 n 2 50 ret 98 51 end 52 if eq mode 4 53 for i ulong 204 54 put p i uchar 0 55 end 56 pwr p 0 get v 0 4 57 pwr p 4 get v 1 4 58 if ne get v 2 0 59 pid p 8 ids 0 60 put p 40 uchar 2 61 pid p 41 ids 0 62 pid p 73 ids 0 63 pid p 169 ids 0 64 end 65 ret 204 66 end 67 for i ulong 161 68 put p i uchar 0 69 end 70 pid p 0 ids 0 71 put p 32 uchar 2 72 pid p 33 ids 1 73 pid p 65 ids 2 74 ret 161 75 end