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/nvrm/uvm_wire_test.c # 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 / nvrm / uvm_wire_test.c` 43 lines · 3291 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 /* HOST_ONLY: vendored UVM ABI oracle, no device calls. */ 3 #include 4 #include 5 #include 6 #include "cudapp_native.h" 7 #include "uvm_linux_ioctl.h" 8 #include "uvm_ioctl.h" 9 10 static int check(uint64_t cmd,const uint64_t a[16],const unsigned char uuid[16],const void *expected,size_t size) { 11 unsigned char wire[56], full[56]={0}; uint64_t n=0; 12 memcpy(full,expected,size); 13 if (omega_nvrm_uvm_wire(&n,cmd,a,16,uuid,16,wire,56) || n!=size || memcmp(wire,full,56)) return 1; 14 for (size_t i=0;i