Skip to content

Commit

Permalink
Disable enable-cuda-compat hook for the IMEX driver
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
elezar committed Mar 9, 2025
1 parent 84aa5a7 commit 7980570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/compute-domain-kubelet-plugin/cdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ func NewCDIHandler(opts ...cdiOption) (*CDIHandler, error) {
nvcdi.WithVendor(h.vendor),
nvcdi.WithClass(h.claimClass),
nvcdi.WithNVIDIACDIHookPath(h.nvidiaCTKPath),
// TODO: This should be removed once the use of a NVIDIA Container Toolkit >= v1.17.5 is commonplace.
nvcdi.WithDisabledHook(nvcdi.HookEnableCudaCompat),
)
if err != nil {
return nil, fmt.Errorf("unable to create CDI library for claims: %w", err)
Expand Down

0 comments on commit 7980570

Please sign in to comment.