Make discovery of graphics libraries optional

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-11-03 22:15:41 +01:00
parent c25376afa0
commit 8d52cc18ce

View File

@ -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)