From 7980570a05abde969d3a7f87a958f2fc0e66c1ce Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 7 Mar 2025 15:12:45 +0200 Subject: [PATCH] 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 --- cmd/compute-domain-kubelet-plugin/cdi.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/compute-domain-kubelet-plugin/cdi.go b/cmd/compute-domain-kubelet-plugin/cdi.go index 5d876965d..592022f2b 100644 --- a/cmd/compute-domain-kubelet-plugin/cdi.go +++ b/cmd/compute-domain-kubelet-plugin/cdi.go @@ -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)