File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
ompi/mca/topo/treematch/treematch Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,11 @@ tm_topology_t* hwloc_to_tm(char *filename)
198198 exit (-1 );
199199 }
200200
201+ #if HWLOC_API_VERSION >= 0x00020000
202+ hwloc_topology_set_all_types_filter (topology , HWLOC_TYPE_FILTER_KEEP_STRUCTURE );
203+ #else /* HWLOC_API_VERSION >= 0x00020000 */
201204 hwloc_topology_ignore_all_keep_structure (topology );
205+ #endif /* HWLOC_API_VERSION >= 0x00020000 */
202206 hwloc_topology_load (topology );
203207
204208
@@ -291,7 +295,11 @@ tm_topology_t* get_local_topo_with_hwloc(void)
291295
292296 /* Build the topology */
293297 hwloc_topology_init (& topology );
298+ #if HWLOC_API_VERSION >= 0x00020000
299+ hwloc_topology_set_all_types_filter (topology , HWLOC_TYPE_FILTER_KEEP_STRUCTURE );
300+ #else /* HWLOC_API_VERSION >= 0x00020000 */
294301 hwloc_topology_ignore_all_keep_structure (topology );
302+ #endif /* HWLOC_API_VERSION >= 0x00020000 */
295303 hwloc_topology_load (topology );
296304
297305 /* Test if symetric */
You can’t perform that action at this time.
0 commit comments