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/omega-mv/blob/main/gpu/nvidia/om/dnn-activations/plan.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / gpu / nvidia / om / dnn-activations / plan.om` 22 lines ยท 437 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Plan words: input bytes, output bytes, CTA count, threads, reserved zero. 3 fn da_plan n ulong op ulong dtype ulong p edit ulong 8 to ulong 4 for i ulong 8 5 put p i 0 6 end 7 if or eq n 0 gt n `4294967295` 8 ret 1 9 end 10 if or gt op 3 gt dtype 2 11 ret 1 12 end 13 bytes = ulong 4 14 if ne dtype 0 15 bytes = ulong 2 16 end 17 put p 0 mul n bytes 18 put p 1 mul n 4 19 put p 2 div add n 31 32 20 put p 3 32 21 ret 0 22 end