mirror of
https://github.com/zebrajr/ollama.git
synced 2026-01-15 12:15:09 +00:00
vulkan: Get FilterID from Backend for Vulkan (#12655)
* vulkan: Get FilterID from Backend for Vulkan * Fixing patch
This commit is contained in:
@@ -726,6 +726,9 @@ func (b *Backend) BackendDevices() []ml.DeviceInfo {
|
||||
}
|
||||
info.PCIID = fmt.Sprintf("%02x:%02x.%x", props.pci_bus_id, props.pci_device_id, props.pci_domain_id)
|
||||
info.LibraryPath = ggml.LibPaths()
|
||||
if props.numeric_id != nil {
|
||||
info.FilteredID = C.GoString(props.numeric_id)
|
||||
}
|
||||
|
||||
C.ggml_backend_dev_memory(dev, &props.memory_free, &props.memory_total)
|
||||
info.TotalMemory = (uint64)(props.memory_total)
|
||||
|
||||
Reference in New Issue
Block a user