File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 12
12
static bool canQueryBandwidth (size_t nodeId) {
13
13
hwloc_topology_t topology = nullptr ;
14
14
int ret = hwloc_topology_init (&topology);
15
- // UT_ASSERTeq(ret, 0);
15
+
16
16
if (!GTEST_OUT_EQ (ret, 0 )){
17
17
return false ;
18
18
}
19
+
19
20
ret = hwloc_topology_load (topology);
20
- // UT_ASSERTeq(ret, 0);
21
+
21
22
if (!GTEST_OUT_EQ (ret, 0 )) {
22
23
return false ;
23
24
}
25
+
24
26
hwloc_obj_t numaNode =
25
27
hwloc_get_obj_by_type (topology, HWLOC_OBJ_NUMANODE, nodeId);
26
- // UT_ASSERTne(numaNode, nullptr);
28
+
27
29
if (!GTEST_OUT_NE (numaNode, nullptr )){
28
30
return false ;
29
31
}
@@ -45,7 +47,6 @@ static bool canQueryBandwidth(size_t nodeId) {
45
47
else {
46
48
return true ;
47
49
}
48
- // return (ret == 0);
49
50
}
50
51
51
52
INSTANTIATE_TEST_SUITE_P (memspaceLowestLatencyTest, memspaceGetTest,
You can’t perform that action at this time.
0 commit comments