Skip to content

Commit e330a93

Browse files
committed
Add enable-cuda-compat hook to CDI spec generation
Signed-off-by: Evan Lezar <[email protected]>
1 parent f445d4b commit e330a93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/nvcdi/driver-nvml.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ func NewDriverLibraryDiscoverer(logger logger.Interface, driver *root.Driver, nv
9797
libraryPaths,
9898
)
9999

100+
// TODO: The following should use the version directly.
101+
cudaCompatLibHookDiscoverer := discover.NewCUDACompatHookDiscoverer(logger, nvidiaCDIHookPath, driver)
100102
updateLDCache, _ := discover.NewLDCacheUpdateHook(logger, libraries, nvidiaCDIHookPath, ldconfigPath)
101103

102104
d := discover.Merge(
@@ -105,6 +107,7 @@ func NewDriverLibraryDiscoverer(logger logger.Interface, driver *root.Driver, nv
105107
version,
106108
nvidiaCDIHookPath,
107109
),
110+
cudaCompatLibHookDiscoverer,
108111
updateLDCache,
109112
)
110113

0 commit comments

Comments
 (0)