mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
vulkan: Get FilterID from Backend for Vulkan (#12655)
* vulkan: Get FilterID from Backend for Vulkan * Fixing patch
This commit is contained in:
@@ -550,13 +550,6 @@ func bootstrapDevices(ctx context.Context, ollamaLibDirs []string, extraEnvs []s
|
||||
}
|
||||
logutil.Trace("runner enumerated devices", "OLLAMA_LIBRARY_PATH", ollamaLibDirs, "devices", devices)
|
||||
|
||||
// Enumerate returned devices starting at 0 per library and assign the per-library index as FilteredID
|
||||
libCounts := make(map[string]int)
|
||||
for i := range devices {
|
||||
lib := devices[i].Library
|
||||
devices[i].FilteredID = strconv.Itoa(libCounts[lib])
|
||||
libCounts[lib]++
|
||||
}
|
||||
return devices
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user