From 8d52cc18ce10c7e65eeb29bebb37bb585a134594 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 3 Nov 2023 22:15:41 +0100 Subject: [PATCH] Make discovery of graphics libraries optional Signed-off-by: Evan Lezar --- pkg/nvcdi/common-nvml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nvcdi/common-nvml.go b/pkg/nvcdi/common-nvml.go index 7768f54e..82c65735 100644 --- a/pkg/nvcdi/common-nvml.go +++ b/pkg/nvcdi/common-nvml.go @@ -46,7 +46,7 @@ func newCommonNVMLDiscoverer(logger logger.Interface, driverRoot string, nvidiaC graphicsMounts, err := discover.NewGraphicsMountsDiscoverer(logger, driverRoot, nvidiaCTKPath) if err != nil { - return nil, fmt.Errorf("error constructing discoverer for graphics mounts: %v", err) + logger.Warningf("failed to create discoverer for graphics mounts: %v", err) } driverFiles, err := NewDriverDiscoverer(logger, driverRoot, nvidiaCTKPath, nvmllib)