We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b56d1ec commit c011712Copy full SHA for c011712
cmd/gpu_plugin/gpu_plugin.go
@@ -240,9 +240,13 @@ func (dp *devicePlugin) Scan(notifier dpapi.Notifier) error {
240
klog.Warning("Failed to scan: ", err)
241
}
242
243
- found := len(devTree)
+ found := 0
244
+ for key := range devTree {
245
+ found += len(devTree[key])
246
+ }
247
if found != previouslyFound {
- klog.V(1).Info("GPU scan update: devices found: ", found)
248
+ klog.V(1).Infof("GPU scan update: %d device resources (with %dx sharing) of %d types found",
249
+ found, dp.options.sharedDevNum, len(devTree))
250
previouslyFound = found
251
252
0 commit comments