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/vector.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 / vector.om` 44 lines · 789 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Copyright 2026 Drake Stapleton 3 fn vread p view uchar 4096 i ulong to ulong 4 x = ulong 0 5 for j ulong 4 6 x = or x shl ulong get p add mul i 4 j mul j 8 7 end 8 ret x 9 end 10 fn vwrite p edit uchar 4096 i ulong x ulong to void 11 for j ulong 4 12 put p add mul i 4 j uchar and shr x mul j 8 255 13 end 14 end 15 fn omvec a edit uchar 4096 b edit uchar 4096 c edit uchar 4096 n ulong base ulong mode ulong to ulong 16 for j ulong n 17 i = add base j 18 if eq mode 2 19 x = add 1000 i 20 y = add 2000 mul i 2 21 if eq i 0 22 x = `4294967294` 23 y = 3 24 end 25 if eq i 1 26 x = `2147483648` 27 y = `2147483648` 28 end 29 vwrite a j x 30 vwrite b j y 31 vwrite c j `3735928559` 32 else 33 x = and add vread a j vread b j `4294967295` 34 if eq mode 0 35 vwrite c j x 36 else 37 if ne vread c j x 38 ret j 39 end 40 end 41 end 42 end 43 ret 1024 44 end