aboutsummaryrefslogtreecommitdiff
path: root/llama.cpp/ggml/include/ggml-zendnn.h
blob: a30a3a980883524be05e884a7d67f8d9f5f8b528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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