metal : map the CPU buffers to Metal buffers (WIP)

This commit is contained in:
Georgi Gerganov 2023-07-20 14:30:34 +03:00
parent f38433ef5d
commit 290cb700bf
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
5 changed files with 78 additions and 24 deletions

View file

@ -27,6 +27,7 @@ extern "C" {
struct ggml_backend_buffer {
struct ggml_backend_buffer_interface interface;
ggml_buffer_context_t context;
size_t backend_size;
void * backend_data;
};