mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-02 14:54:35 +00:00
Set the singleton to nullptr here.
This commit is contained in:
parent
68aca6be08
commit
addac25293
@ -250,6 +250,10 @@ bool ggml_vk_free_device() {
|
|||||||
if (!ggml_vk_has_device())
|
if (!ggml_vk_has_device())
|
||||||
return false;
|
return false;
|
||||||
komputeManager()->destroy();
|
komputeManager()->destroy();
|
||||||
|
// FIXME: The lifetime of these two needs to be tied together as we're relying upon the fact
|
||||||
|
// the llama_free(ctx) destroys this memory and we just set the singleton to nullptr here which
|
||||||
|
// is very brittle
|
||||||
|
s_kompute_context = nullptr;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user