Vulkan: Refactor to make sure Vulkan instance is destroyed properly on program exit
Some checks failed
Python check requirements.txt / check-requirements (push) Has been cancelled
Python Type-Check / pyright type-check (push) Has been cancelled

This commit is contained in:
0cc4m 2024-11-29 07:42:00 +00:00
parent d79d8f39b4
commit 01ab364980
2 changed files with 510 additions and 363 deletions

View File

@ -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);

File diff suppressed because it is too large Load Diff