rturn Vulkan for vulkan library

This commit is contained in:
Inforithmics
2025-10-05 20:29:38 +02:00
parent 218e57974f
commit 690461a12f
2 changed files with 2 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,