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
songlinfeng
container-toolkit
Commits
9cd20184
Commit
9cd20184
authored
Nov 11, 2025
by
songlinfeng
Browse files
support dcu-tracker for --gpus
parent
48c080c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
internal/discover/graphics.go
internal/discover/graphics.go
+2
-1
No files found.
internal/discover/graphics.go
View file @
9cd20184
...
...
@@ -117,7 +117,8 @@ func NewCommonHCUDiscoverer(logger logger.Interface, dtkCDIHookPath string, driv
var
trackHook
Hook
value
:=
containerImage
.
Getenv
(
image
.
EnvVarDTKVisibleDevices
)
if
len
(
value
)
>
0
{
value1
:=
containerImage
.
Getenv
(
image
.
EnvVarNvidiaVisibleDevices
)
if
len
(
value
)
>
0
||
len
(
value1
)
>
0
{
trackHook
=
CreateTrackHook
(
dtkCDIHookPath
,
containerImage
.
ContainerId
)
}
...
...
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