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/dnn-rows/plan.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 / dnn-rows / plan.om` 34 lines · 620 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Shape rows,length,dtype,op,epsilon_bits. Plan input bytes,output bytes,rows,threads. 3 fn dr_plan s view ulong 8 p edit ulong 16 to ulong 4 for i ulong 16 5 put p i 0 6 end 7 if or eq get s 0 0 gt get s 0 65535 8 ret 1 9 end 10 if or eq get s 1 0 gt get s 1 65535 11 ret 1 12 end 13 if or gt get s 2 2 gt get s 3 2 14 ret 1 15 end 16 if ne get s 3 0 17 if or lt get s 4 `8388608` ge get s 4 `2139095040` 18 ret 1 19 end 20 end 21 n = mul get s 0 get s 1 22 if gt n `1073741824` 23 ret 1 24 end 25 bytes = ulong 4 26 if ne get s 2 0 27 bytes = ulong 2 28 end 29 put p 0 mul n bytes 30 put p 1 mul n 4 31 put p 2 get s 0 32 put p 3 32 33 ret 0 34 end