From 98ffe2aa67e487cf317a65642fa2ef1c4904826a Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 26 Sep 2024 14:42:26 +0200 Subject: [PATCH] Also search for driver libraries in vdpau This change adds the vdpau subfolder to the paths searched for driver libraries. This allows the libvdpau_nvidia.so.RM_VERSION library to also be discovered. Signed-off-by: Evan Lezar --- pkg/nvcdi/driver-nvml.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/nvcdi/driver-nvml.go b/pkg/nvcdi/driver-nvml.go index 8fb39888..d40045d4 100644 --- a/pkg/nvcdi/driver-nvml.go +++ b/pkg/nvcdi/driver-nvml.go @@ -200,7 +200,10 @@ func getVersionLibs(logger logger.Interface, driver *root.Driver, version string libraries := lookup.NewFileLocator( lookup.WithLogger(logger), - lookup.WithSearchPaths(libRoot), + lookup.WithSearchPaths( + libRoot, + filepath.Join(libRoot, "vdpau"), + ), lookup.WithOptional(true), )