Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

win: warn if ggml-base detected in PATH (#13289)

Daniel Hiltgen554172759ca5
diff --git a/discover/runner.go b/discover/runner.go
index fcac0225f..44737aa22 100644
--- a/discover/runner.go
+++ b/discover/runner.go
@@ -65,6 +65,7 @@ func GPUDevices(ctx context.Context, runners []ml.FilteredRunnerDiscovery) []ml.
}
slog.Info("discovering available GPUs...")
+ detectIncompatibleLibraries()
// Warn if any user-overrides are set which could lead to incorrect GPU discovery
overrideWarnings()
@@ -487,3 +488,16 @@ func overrideWarnings() {
slog.Warn("if GPUs are not correctly discovered, unset and try again")
}
}
+
+func detectIncompatibleLibraries() {
+ if runtime.GOOS != "windows" {
+ return
+ }
+ basePath, err := exec.LookPath("ggml-base.dll")
+ if err != nil || basePath == "" {
+ return
+ }
+ if !strings.HasPrefix(basePath, ml.LibOllamaPath) {
+ slog.Warn("potentially incompatible library detected in PATH", "location", basePath)
+ }
+}