Free vk context
This commit is contained in:
parent
55815b67f4
commit
e0814f86a2
1 changed files with 3 additions and 0 deletions
|
@ -2817,6 +2817,9 @@ struct llama_context * llama_init_from_file(
|
||||||
}
|
}
|
||||||
|
|
||||||
void llama_free(struct llama_context * ctx) {
|
void llama_free(struct llama_context * ctx) {
|
||||||
|
#ifdef GGML_USE_KOMPUTE
|
||||||
|
ggml_vk_free(ctx->ctx_kompute);
|
||||||
|
#endif
|
||||||
delete ctx;
|
delete ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue