From b1ad3a43cb58c3c01dae8b68a5e8fac34a5620f8 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Fri, 3 May 2024 11:55:32 -0700 Subject: [PATCH] Skip PhysX cudart library For some reason this library gives incorrect GPU information, so skip it --- gpu/gpu.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gpu/gpu.go b/gpu/gpu.go index 9b915015..73dbe275 100644 --- a/gpu/gpu.go +++ b/gpu/gpu.go @@ -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 {