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/native/nvrm/uvm_fields.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 / native / nvrm / uvm_fields.om` 75 lines · 1418 bytes Raw Blame History 1 om2 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 note Shared byte bodies for legacy fixed exports and exact-sized struct views. 4 fn nv_ustor b edit uchar * off ulong v ulong n ulong to void 5 for i ulong n 6 put b add off i uchar and shr v mul i 8 255 7 end 8 end 9 fn nv_ubody cmd ulong a view ulong 16 uuid view uchar 16 b edit uchar * to ulong 10 for i ulong len b 11 put b i 0 12 end 13 if eq cmd `805306369` 14 nv_ustor b 0 get a 0 8 15 ret 16 16 end 17 if eq cmd 75 18 nv_ustor b 0 get a 0 4 19 ret 8 20 end 21 if or eq cmd 34 eq cmd 73 22 nv_ustor b 0 get a 0 8 23 nv_ustor b 8 get a 1 8 24 ret 24 25 end 26 for i ulong 16 27 put b i get uuid i 28 end 29 if or eq cmd 26 eq cmd 38 30 ret 20 31 end 32 if eq cmd 37 33 nv_ustor b 24 get a 0 4 34 nv_ustor b 28 get a 1 4 35 nv_ustor b 32 get a 2 4 36 ret 40 37 end 38 if eq cmd 25 39 nv_ustor b 16 get a 0 4 40 nv_ustor b 20 get a 1 4 41 nv_ustor b 24 get a 2 4 42 ret 32 43 end 44 if eq cmd 27 45 nv_ustor b 16 get a 0 4 46 nv_ustor b 20 get a 1 4 47 nv_ustor b 24 get a 2 4 48 nv_ustor b 32 get a 3 8 49 nv_ustor b 40 get a 4 8 50 ret 56 51 end 52 if eq cmd 28 53 nv_ustor b 16 get a 0 4 54 nv_ustor b 20 get a 1 4 55 ret 28 56 end 57 ret 0 58 end 59 fn nv_umap a view ulong 16 uuid view uchar 16 b edit uchar * to ulong 60 for i ulong len b 61 put b i 0 62 end 63 nv_ustor b 0 get a 0 8 64 nv_ustor b 8 get a 1 8 65 nv_ustor b 16 get a 2 8 66 for i ulong 16 67 put b add 24 i get uuid i 68 end 69 nv_ustor b 40 get a 7 4 70 nv_ustor b 9240 get a 3 8 71 nv_ustor b 9248 get a 4 4 72 nv_ustor b 9252 get a 5 4 73 nv_ustor b 9256 get a 6 4 74 ret 9264 75 end