Skip to content

Commit 51be27c

Browse files
author
ndenoyelle
committed
Various fixes
Signed-off-by: ndenoyelle <[email protected]>
1 parent 5cf6a5a commit 51be27c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/hwloc/hwloc_distrib.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ static void test_round_robin_Core_PU(hwloc_topology_t topology)
106106
// This test can only work if all the Cores have the same amount of child PU.
107107
if ( !is_tleaf(topology) )
108108
return;
109+
if ( hwloc_get_type_depth(topology, HWLOC_OBJ_CORE) < 0 )
110+
return;
111+
if ( hwloc_get_type_depth(topology, HWLOC_OBJ_PU) < 0 )
112+
return;
109113

110114
int i;
111115
int nPU = hwloc_get_nbobjs_by_type(topology, HWLOC_OBJ_PU);

0 commit comments

Comments
 (0)