File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ hwloc_calc_get_nbobjs_inside_sets_by_depth(hwloc_topology_t topology,
81
81
continue ;
82
82
if (!hwloc_bitmap_isincluded (obj -> nodeset , nodeset ))
83
83
continue ;
84
- assert (!hwloc_bitmap_iszero (obj -> cpuset ) || !hwloc_bitmap_iszero (obj -> nodeset ));
84
+ if (hwloc_bitmap_iszero (obj -> cpuset ) && hwloc_bitmap_iszero (obj -> nodeset ))
85
+ /* ignore objects with empty sets (both can be empty when outside of cgroup) */
86
+ continue ;
85
87
n ++ ;
86
88
}
87
89
return n ;
@@ -99,7 +101,9 @@ hwloc_calc_get_obj_inside_sets_by_depth(hwloc_topology_t topology,
99
101
continue ;
100
102
if (!hwloc_bitmap_isincluded (obj -> nodeset , nodeset ))
101
103
continue ;
102
- assert (!hwloc_bitmap_iszero (obj -> cpuset ) || !hwloc_bitmap_iszero (obj -> nodeset ));
104
+ if (hwloc_bitmap_iszero (obj -> cpuset ) && hwloc_bitmap_iszero (obj -> nodeset ))
105
+ /* ignore objects with empty sets (both can be empty when outside of cgroup) */
106
+ continue ;
103
107
if (logical ) {
104
108
if (i == ind )
105
109
return obj ;
You can’t perform that action at this time.
0 commit comments