Skip to content

Commit afcef0a

Browse files
authored
Merge pull request #162 from klueska/set-nvds-void
Set NVIDIA_VISIBLE_DEVICES to void to bypass nvidia-container-runtime
2 parents b392e9b + a2f5e0d commit afcef0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/nvidia-dra-plugin/cdi.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package main
1919
import (
2020
"fmt"
2121
"io"
22-
"strings"
2322

2423
"github.com/sirupsen/logrus"
2524

@@ -211,7 +210,7 @@ func (cdi *CDIHandler) CreateClaimSpecFile(claimUID string, preparedDevices Prep
211210
claimDeviceEdits := cdiapi.ContainerEdits{
212211
ContainerEdits: &cdispec.ContainerEdits{
213212
Env: []string{
214-
fmt.Sprintf("NVIDIA_VISIBLE_DEVICES=%s", strings.Join(preparedDevices.UUIDs(), ",")),
213+
"NVIDIA_VISIBLE_DEVICES=void",
215214
},
216215
},
217216
}

0 commit comments

Comments
 (0)