ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / include / ggml-openvino.h
| 1 | #pragma once |
| 2 | |
| 3 | #include "ggml-backend.h" |
| 4 | |
| 5 | #include <cstring> |
| 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 |