You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/util/machine/device.go
+22-81Lines changed: 22 additions & 81 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ package machine
19
19
import (
20
20
"fmt"
21
21
"sort"
22
-
"strings"
23
22
"sync"
24
23
25
24
"k8s.io/apimachinery/pkg/util/sets"
@@ -149,98 +148,40 @@ type DeviceTopology struct {
149
148
Devicesmap[string]DeviceInfo
150
149
}
151
150
152
-
// GroupDeviceAffinity forms a topology graph such that all groups of DeviceIDs are within a certain affinity priority level
153
-
// It preserves sub-group boundaries and eliminates duplicates
154
-
// E.g. if priority 0 has groups [1, 3, 5, 6] and [0, 2, 4, 7], priority 1 will be either [1, 3, 5, 6, 0, 2, 4, 7] or [0, 2, 4, 7, 1, 3, 5, 6] and not any other permutation
155
-
// This is to ensure that the higher priority affinity groups keep its permutation when it is in lower priority affinity group.
151
+
// GroupDeviceAffinity forms a topology graph such that all groups of DeviceIDs within a certain affinity priority level
0 commit comments