Skip to content

Commit

Permalink
Vulkan: Refactor to make sure Vulkan instance is destroyed properly o…
Browse files Browse the repository at this point in the history
…n program exit
  • Loading branch information
0cc4m committed Dec 26, 2024
1 parent d79d8f3 commit 01ab364
Show file tree
Hide file tree
Showing 2 changed files with 510 additions and 363 deletions.
1 change: 1 addition & 0 deletions ggml/include/ggml-vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extern "C" {
#define GGML_VK_MAX_DEVICES 16

GGML_BACKEND_API void ggml_vk_instance_init(void);
GGML_BACKEND_API void ggml_vk_instance_unload(void);

// backend API
GGML_BACKEND_API ggml_backend_t ggml_backend_vk_init(size_t dev_num);
Expand Down
Loading

0 comments on commit 01ab364

Please sign in to comment.