Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
b1ad3a43
Commit
b1ad3a43
authored
May 03, 2024
by
Daniel Hiltgen
Browse files
Skip PhysX cudart library
For some reason this library gives incorrect GPU information, so skip it
parent
267e25a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gpu/gpu.go
gpu/gpu.go
+5
-0
No files found.
gpu/gpu.go
View file @
b1ad3a43
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment