Commit f0eeb3a
committed
utils/calc: fix searching CPU objects below heterogeneous NUMA
socket:0.numa:0.core:0 looks for first core whose cpuset and nodeset
are included in socket:0.numa:0. This fails on heterogeneous memory
machines since this core may have 2 local NUMAs in its nodeset,
hence not included in socket:0.numa:0's nodeset.
Fix this by checking if the nodeset intersects instead of being included.
Note that the empty bitmap is isincluded in any bitmap, while it doesn't
intersect with anything, hence we have to check empty nodesets too.
Thanks to Antoine Morvan for the report.
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>1 parent c129793 commit f0eeb3a
File tree
3 files changed
+10
-3
lines changed- utils/hwloc
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
0 commit comments