@@ -7,6 +7,9 @@ Subject: [PATCH] Ensure that generated CDI specs do not contain
77Signed-off-by: Evan Lezar <elezar@nvidia.com>
88(cherry picked from commit 49dc098d513923505a66bc8380ed80c0ce9a0165)
99Signed-off-by: Piyush Jena <jepiyush@amazon.com>
10+
11+ [rework to apply to latest upstream
12+ Signed-off-by: Vighnesh Maheshwari <vighmah@amazon.com>]
1013---
1114 internal/cdi/cdi.go | 1 +
1215 1 file changed, 1 insertion(+)
@@ -15,14 +18,13 @@ diff --git a/internal/cdi/cdi.go b/internal/cdi/cdi.go
1518index 7cad67cf4..bee83c6e4 100644
1619--- a/internal/cdi/cdi.go
1720+++ b/internal/cdi/cdi.go
18- @@ -126 ,6 +126 ,7 @@ func New(infolib info.Interface, nvmllib nvml.Interface, devicelib device.Interf
21+ @@ -119 ,6 +119 ,7 @@ func New(infolib info.Interface, nvmllib nvml.Interface, devicelib device.Interf
1922 nvcdi.WithNVIDIACDIHookPath(c.nvidiaCTKPath),
2023 nvcdi.WithNvmlLib(c.nvmllib),
2124 nvcdi.WithVendor(c.vendor),
22- + nvcdi.WithDisabledHook(nvcdi.HookEnableCudaCompat ),
25+ + nvcdi.WithDisabledHook(nvcdi.EnableCudaCompatHook ),
2326 }
24-
25- c.cdilibs = make(map[string]nvcdi.SpecGenerator)
26- - -
27+
28+ // On Tegra (CSV mode), the default CSV files live under the driver root.
29+ - -
27302.52.0
28-
0 commit comments