diff --git a/discover/runner.go b/discover/runner.go index fcac0225..44737aa2 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) + } +}