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/include/ggml-openvino.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 / include / ggml-openvino.h` 37 lines ยท 1034 bytes Raw Blame History 1 #pragma once 2 3 #include "ggml-backend.h" 4 5 #include 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 #define GGML_OPENVINO_NAME "OPENVINO" 12 13 // backend API 14 GGML_BACKEND_API ggml_backend_t ggml_backend_openvino_init(int device); 15 16 GGML_BACKEND_API bool ggml_backend_is_openvino(ggml_backend_t backend); 17 18 GGML_BACKEND_API bool ggml_backend_buffer_is_openvino(ggml_backend_buffer_t buffer); 19 20 GGML_BACKEND_API bool ggml_backend_buft_is_openvino(ggml_backend_buffer_type_t buft); 21 22 GGML_BACKEND_API bool ggml_backend_buft_is_openvino_host(ggml_backend_buffer_type_t buft); 23 24 GGML_BACKEND_API size_t ggml_backend_openvino_buffer_get_ctx_id(ggml_backend_buffer_t buffer); 25 26 // device buffer 27 GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_openvino_buffer_type(int device); 28 29 GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_openvino_host_buffer_type(int device); 30 31 GGML_BACKEND_API int ggml_backend_openvino_get_device_count(void); 32 33 GGML_BACKEND_API ggml_backend_reg_t ggml_backend_openvino_reg(void); 34 35 #ifdef __cplusplus 36 } 37 #endif