Merge pull request #4135 from dhiltgen/no_physx

Skip PhysX cudart library
This commit is contained in:
Daniel Hiltgen
2024-05-06 13:34:00 -07:00
committed by GitHub

View File

@@ -266,6 +266,11 @@ func FindGPULibs(baseLibName string, defaultPatterns []string) []string {
patterns = append(patterns, defaultPatterns...)
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 {