2024-10-18 05:34:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ggml.h"
|
|
|
|
#include "ggml-backend.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// buffer_type API
|
2024-11-14 17:04:35 +00:00
|
|
|
GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_amx_buffer_type(void);
|
2024-10-18 05:34:36 +00:00
|
|
|
|
2024-11-14 17:04:35 +00:00
|
|
|
GGML_BACKEND_API bool ggml_backend_is_amx(ggml_backend_t backend);
|
2024-10-18 05:34:36 +00:00
|
|
|
|
|
|
|
// backend API
|
2024-11-14 17:04:35 +00:00
|
|
|
GGML_BACKEND_API ggml_backend_t ggml_backend_amx_init(void);
|
2024-10-18 05:34:36 +00:00
|
|
|
|
2024-11-14 17:04:35 +00:00
|
|
|
GGML_BACKEND_API void ggml_backend_amx_set_n_threads(ggml_backend_t backend_amx, int n_threads);
|
2024-10-18 05:34:36 +00:00
|
|
|
|
2024-11-14 17:04:35 +00:00
|
|
|
GGML_BACKEND_API ggml_backend_reg_t ggml_backend_amx_reg(void);
|
2024-10-18 05:34:36 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|