ggml : add is_ram_shared to ggml_backend
Metal can share the RAM memory and can utilize mmap without temp buffer
This commit is contained in:
parent
90503f150d
commit
652c849643
4 changed files with 68 additions and 21 deletions
|
@ -255,8 +255,9 @@ struct ggml_backend ggml_backend_cpu_init(void) {
|
|||
ctx->work_size = 0;
|
||||
|
||||
struct ggml_backend cpu_backend = {
|
||||
/* .interface = */ &cpu_backend_interface,
|
||||
/* .context = */ ctx
|
||||
/* .interface = */ &cpu_backend_interface,
|
||||
/* .context = */ ctx,
|
||||
/* .is_ram_shared = */ true,
|
||||
};
|
||||
return cpu_backend;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue