Skip to content

Commit

Permalink
fixup! hwloc-reader: switch to the types_filter functions new to hwloc 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SteVwonder committed Jul 14, 2020
1 parent 8176e89 commit 7bc01d6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions resource/readers/resource_reader_hwloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,23 +308,26 @@ int resource_reader_hwloc_t::unpack_internal (resource_graph_t &g,
goto done;
}
#else
if (hwloc_topology_set_io_types_filter(topo,
if (hwloc_topology_set_io_types_filter (topo,
HWLOC_TYPE_FILTER_KEEP_IMPORTANT)
< 0) {
m_err_msg += "hwloc_topology_set_io_types_filter";
goto done;
errno = EINVAL;
m_err_msg += "hwloc_topology_set_io_types_filter; ";
goto done;
}
if (hwloc_topology_set_cache_types_filter(topo,
if (hwloc_topology_set_cache_types_filter (topo,
HWLOC_TYPE_FILTER_KEEP_STRUCTURE)
< 0) {
m_err_msg += "hwloc_topology_set_cache_types_filter";
goto done;
errno = EINVAL;
m_err_msg += "hwloc_topology_set_cache_types_filter; ";
goto done;
}
if (hwloc_topology_set_icache_types_filter(topo,
if (hwloc_topology_set_icache_types_filter (topo,
HWLOC_TYPE_FILTER_KEEP_STRUCTURE)
< 0) {
m_err_msg += "hwloc_topology_set_icache_types_filter";
goto done;
errno = EINVAL;
m_err_msg += "hwloc_topology_set_icache_types_filter; ";
goto done;
}
#endif
if ( hwloc_topology_set_xmlbuffer (topo, str.c_str (), len) != 0) {
Expand Down

0 comments on commit 7bc01d6

Please sign in to comment.