Skip PhysX cudart library

For some reason this library gives incorrect GPU information, so skip it
This commit is contained in:
Daniel Hiltgen 2024-05-03 11:55:32 -07:00
parent 267e25a750
commit b1ad3a43cb

View file

@ -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 {