Skip to content

Commit

Permalink
vulkan: properly initialize vulkan devices for LLAMA_SPLIT_MODE_NONE (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriankhl authored May 28, 2024
1 parent 2b737ca commit 56411a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ggml-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6012,6 +6012,8 @@ static ggml_backend_buffer_type_i ggml_backend_vk_buffer_type_interface = {
};

GGML_CALL ggml_backend_buffer_type_t ggml_backend_vk_buffer_type(size_t dev_num) {
ggml_vk_instance_init();

#ifdef GGML_VULKAN_DEBUG
std::cerr << "ggml_backend_vk_buffer_type(" << dev_num << ")" << std::endl;
#endif
Expand Down

0 comments on commit 56411a9

Please sign in to comment.