We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50579f2 commit de9b0bbCopy full SHA for de9b0bb
ggml-kompute.cpp
@@ -301,6 +301,7 @@ ggml_vk_device ggml_vk_current_device() {
301
}
302
303
ggml_kompute_context *ggml_vk_init() {
304
+ GGML_ASSERT(s_kompute_context == nullptr);
305
s_kompute_context = new ggml_kompute_context;
306
return s_kompute_context;
307
@@ -1824,8 +1825,8 @@ static const char * ggml_backend_kompute_name(ggml_backend_t backend) {
1824
1825
1826
static void ggml_backend_kompute_free(ggml_backend_t backend) {
1827
struct ggml_kompute_context * ctx = (struct ggml_kompute_context *)backend->context;
- ggml_vk_free_device();
1828
ggml_vk_free(ctx);
1829
+ ggml_vk_free_device();
1830
delete backend;
1831
1832
0 commit comments