|
1 | 1 | /* |
2 | 2 | * Copyright © 2009 CNRS |
3 | | - * Copyright © 2009-2022 Inria. All rights reserved. |
| 3 | + * Copyright © 2009-2023 Inria. All rights reserved. |
4 | 4 | * Copyright © 2009-2012 Université Bordeaux |
5 | 5 | * Copyright © 2011 Cisco Systems, Inc. All rights reserved. |
6 | 6 | * See COPYING in top-level directory. |
@@ -88,7 +88,7 @@ hwloc_calc_get_nbobjs_inside_sets_by_depth(struct hwloc_calc_location_context_s |
88 | 88 | while ((obj = hwloc_get_next_obj_by_depth(topology, depth, obj)) != NULL) { |
89 | 89 | if (!hwloc_bitmap_isincluded(obj->cpuset, cpuset)) |
90 | 90 | continue; |
91 | | - if (!hwloc_bitmap_isincluded(obj->nodeset, nodeset)) |
| 91 | + if (!hwloc_bitmap_iszero(obj->nodeset) && !hwloc_bitmap_intersects(obj->nodeset, nodeset)) |
92 | 92 | continue; |
93 | 93 | if (hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_iszero(obj->nodeset)) |
94 | 94 | /* ignore objects with empty sets (both can be empty when outside of cgroup) */ |
@@ -117,7 +117,7 @@ hwloc_calc_get_obj_inside_sets_by_depth(struct hwloc_calc_location_context_s *lc |
117 | 117 | while ((obj = hwloc_get_next_obj_by_depth(topology, depth, obj)) != NULL) { |
118 | 118 | if (!hwloc_bitmap_isincluded(obj->cpuset, cpuset)) |
119 | 119 | continue; |
120 | | - if (!hwloc_bitmap_isincluded(obj->nodeset, nodeset)) |
| 120 | + if (!hwloc_bitmap_iszero(obj->nodeset) && !hwloc_bitmap_intersects(obj->nodeset, nodeset)) |
121 | 121 | continue; |
122 | 122 | if (hwloc_bitmap_iszero(obj->cpuset) && hwloc_bitmap_iszero(obj->nodeset)) |
123 | 123 | /* ignore objects with empty sets (both can be empty when outside of cgroup) */ |
|
0 commit comments