Skip to content

Commit 7980570

Browse files
committed
Disable enable-cuda-compat hook for the IMEX driver
In order to support older NVIDIA Container Toolkit installations we explicitly disable the enable-cuda-compat hooks for the IMEX driver. Signed-off-by: Evan Lezar <[email protected]>
1 parent 84aa5a7 commit 7980570

File tree

1 file changed

+2
-0
lines changed
  • cmd/compute-domain-kubelet-plugin

1 file changed

+2
-0
lines changed

cmd/compute-domain-kubelet-plugin/cdi.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ func NewCDIHandler(opts ...cdiOption) (*CDIHandler, error) {
120120
nvcdi.WithVendor(h.vendor),
121121
nvcdi.WithClass(h.claimClass),
122122
nvcdi.WithNVIDIACDIHookPath(h.nvidiaCTKPath),
123+
// TODO: This should be removed once the use of a NVIDIA Container Toolkit >= v1.17.5 is commonplace.
124+
nvcdi.WithDisabledHook(nvcdi.HookEnableCudaCompat),
123125
)
124126
if err != nil {
125127
return nil, fmt.Errorf("unable to create CDI library for claims: %w", err)

0 commit comments

Comments
 (0)