diff --git a/libvgpu b/libvgpu index 6039f8068b..54b1305503 160000 --- a/libvgpu +++ b/libvgpu @@ -1 +1 @@ -Subproject commit 6039f8068b5212c14142f8a0571b1ff1db774370 +Subproject commit 54b13055032577b9487d108fa1b18ccaf56274cc diff --git a/pkg/device/enflame/device.go b/pkg/device/enflame/device.go index 23f78d5261..92e15d5455 100644 --- a/pkg/device/enflame/device.go +++ b/pkg/device/enflame/device.go @@ -121,7 +121,7 @@ func (dev *EnflameDevices) GetNodeDevices(n corev1.Node) ([]*util.DeviceInfo, er } shared, _ := n.Status.Capacity.Name(corev1.ResourceName(SharedResourceName), resource.DecimalSI).AsInt64() dev.factor = int(shared / cards) - for int64(i)*100 < cards { + for i < int(cards) { nodedevices = append(nodedevices, &util.DeviceInfo{ Index: uint(i), ID: n.Name + "-enflame-" + fmt.Sprint(i),