mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
Skip PhysX cudart library
For some reason this library gives incorrect GPU information, so skip it
This commit is contained in:
parent
267e25a750
commit
b1ad3a43cb
@ -220,6 +220,11 @@ func FindGPULibs(baseLibName string, patterns []string) []string {
|
||||
}
|
||||
slog.Debug("gpu library search", "globs", patterns)
|
||||
for _, pattern := range patterns {
|
||||
|
||||
// Nvidia PhysX known to return bogus results
|
||||
if strings.Contains(pattern, "PhysX") {
|
||||
slog.Debug("skipping PhysX cuda library path", "path", pattern)
|
||||
}
|
||||
// Ignore glob discovery errors
|
||||
matches, _ := filepath.Glob(pattern)
|
||||
for _, match := range matches {
|
||||
|
Loading…
x
Reference in New Issue
Block a user