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/apirest/mstep.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 / apirest / mstep.om` 49 lines · 1058 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note q15 mode: upload chunks, output windows, row launches. C owns pointer acquisition and effects only. 3 fn armstep q edit ulong 16 x view uint * to ulong 4 if eq get q 15 3 5 for i ulong get q 1 6 if eq wok get x i uint get q 2 uint get q 3 0 7 ret i 8 end 9 end 10 ret get q 1 11 end 12 if ge get q 0 get q 1 13 ret 0 14 end 15 if eq get q 15 0 16 first = get q 0 17 last = add first get q 3 18 if gt last get q 1 19 last = get q 1 20 end 21 put q 8 first 22 put q 9 last 23 put q 10 mul mul first get q 2 8 24 put q 11 mul mul sub last first get q 2 8 25 put q 12 mul get q 11 2 26 put q 0 last 27 ret 1 28 end 29 if eq get q 15 1 30 put q 8 get q 0 31 put q 9 add get q 5 mul mul add div ulong get x get q 0 8 get q 6 get q 2 16 32 put q 10 mul mul get q 0 get q 3 get q 4 33 put q 0 add get q 0 1 34 ret 1 35 end 36 if eq get q 15 2 37 rows = sub get q 1 get q 0 38 if gt rows get q 2 39 rows = get q 2 40 end 41 put q 8 rows 42 put q 9 div div rows 16 get q 3 43 put q 10 add get q 6 mul mul get q 0 get q 4 2 44 put q 11 add get q 7 mul mul get q 0 get q 5 4 45 put q 0 add get q 0 get q 2 46 ret 1 47 end 48 ret 0 49 end