summaryrefslogtreecommitdiff
path: root/llama.cpp/ggml/include/ggml-zendnn.h
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/ggml/include/ggml-zendnn.h')
-rw-r--r--llama.cpp/ggml/include/ggml-zendnn.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/llama.cpp/ggml/include/ggml-zendnn.h b/llama.cpp/ggml/include/ggml-zendnn.h
new file mode 100644
index 0000000..a30a3a9
--- /dev/null
+++ b/llama.cpp/ggml/include/ggml-zendnn.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "ggml-backend.h"
+#include "ggml.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// backend API
+GGML_BACKEND_API ggml_backend_t ggml_backend_zendnn_init(void);
+
+GGML_BACKEND_API bool ggml_backend_is_zendnn(ggml_backend_t backend);
+
+// number of threads used for zendnn operations
+GGML_BACKEND_API void ggml_backend_zendnn_set_n_threads(ggml_backend_t backend_zendnn, int n_threads);
+
+GGML_BACKEND_API ggml_backend_reg_t ggml_backend_zendnn_reg(void);
+
+#ifdef __cplusplus
+}
+#endif