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/ggml/blob/master/src/ggml-virtgpu/virtgpu-shm.h # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-virtgpu / virtgpu-shm.h` 23 lines ยท 423 bytes Raw Blame History 1 #pragma once 2 3 #include "virtgpu-utils.h" 4 5 #include 6 7 #include 8 #include 9 #include 10 #include 11 12 struct virtgpu; 13 14 struct virtgpu_shmem { 15 uint32_t res_id; 16 size_t mmap_size; 17 void * mmap_ptr; 18 19 uint32_t gem_handle; 20 }; 21 22 int virtgpu_shmem_create(virtgpu * gpu, size_t size, virtgpu_shmem * shmem); 23 void virtgpu_shmem_destroy(virtgpu * gpu, virtgpu_shmem * shmem);