Skip to content

Commit d9b0958

Browse files
committed
Vulkan: Refactor to make sure Vulkan instance is destroyed properly on program exit
1 parent a813bad commit d9b0958

File tree

2 files changed

+529
-382
lines changed

2 files changed

+529
-382
lines changed

ggml/include/ggml-vulkan.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extern "C" {
1111
#define GGML_VK_MAX_DEVICES 16
1212

1313
GGML_BACKEND_API void ggml_vk_instance_init(void);
14+
GGML_BACKEND_API void ggml_vk_instance_unload(void);
1415

1516
// backend API
1617
GGML_BACKEND_API ggml_backend_t ggml_backend_vk_init(size_t dev_num);

0 commit comments

Comments
 (0)