mirror of
https://github.com/ollama/ollama.git
synced 2026-08-27 04:06:17 +00:00
rturn Vulkan for vulkan library
This commit is contained in:
parent
218e57974f
commit
690461a12f
2 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ index 061cd078..adea7783 100644
|
|||
ctx->is_integrated_gpu = ggml_backend_vk_get_device_type(i) == vk::PhysicalDeviceType::eIntegratedGpu;
|
||||
ctx->pci_bus_id = ggml_backend_vk_get_device_pci_id(i);
|
||||
+ ctx->id = ggml_backend_vk_get_device_id(i);
|
||||
+ ctx->library = GGML_VK_NAME;
|
||||
devices.push_back(new ggml_backend_device {
|
||||
/* .iface = */ ggml_backend_vk_device_i,
|
||||
/* .reg = */ reg,
|
||||
|
|
|
|||
|
|
@ -13002,6 +13002,7 @@ static ggml_backend_dev_t ggml_backend_vk_reg_get_device(ggml_backend_reg_t reg,
|
|||
ctx->is_integrated_gpu = ggml_backend_vk_get_device_type(i) == vk::PhysicalDeviceType::eIntegratedGpu;
|
||||
ctx->pci_bus_id = ggml_backend_vk_get_device_pci_id(i);
|
||||
ctx->id = ggml_backend_vk_get_device_id(i);
|
||||
ctx->library = GGML_VK_NAME;
|
||||
devices.push_back(new ggml_backend_device {
|
||||
/* .iface = */ ggml_backend_vk_device_i,
|
||||
/* .reg = */ reg,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue