mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-04-24 08:04:34 +00:00
Add enable-cuda-compat hook to CDI spec generation
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
f445d4b614
commit
e330a938fd
@ -97,6 +97,8 @@ func NewDriverLibraryDiscoverer(logger logger.Interface, driver *root.Driver, nv
|
||||
libraryPaths,
|
||||
)
|
||||
|
||||
// TODO: The following should use the version directly.
|
||||
cudaCompatLibHookDiscoverer := discover.NewCUDACompatHookDiscoverer(logger, nvidiaCDIHookPath, driver)
|
||||
updateLDCache, _ := discover.NewLDCacheUpdateHook(logger, libraries, nvidiaCDIHookPath, ldconfigPath)
|
||||
|
||||
d := discover.Merge(
|
||||
@ -105,6 +107,7 @@ func NewDriverLibraryDiscoverer(logger logger.Interface, driver *root.Driver, nv
|
||||
version,
|
||||
nvidiaCDIHookPath,
|
||||
),
|
||||
cudaCompatLibHookDiscoverer,
|
||||
updateLDCache,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user