Removed unused code

Fix linter error in CI
This commit is contained in:
Nakasaka, Masato 2025-09-16 17:18:49 +09:00
parent ede4081253
commit 7a6b09ebae
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
package discover
import (
"log/slog"
"strings"
)
func vkGetVisibleDevicesEnv(gpuInfo []GpuInfo) (string, string) {
ids := []string{}
for _, info := range gpuInfo {
if info.Library != "vulkan" {
// TODO shouldn't happen if things are wired correctly...
slog.Debug("vkGetVisibleDevicesEnv skipping over non-vulkan device", "library", info.Library)
continue
}
ids = append(ids, info.ID)
}
return "GGML_VK_VISIBLE_DEVICES", strings.Join(ids, ",")
}