@@ -31,7 +31,7 @@ int opal_hwloc_pack(opal_buffer_t *buffer, const void *src,
3131 t = tarray [i ];
3232
3333 /* extract an xml-buffer representation of the tree */
34- if (0 != hwloc_topology_export_xmlbuffer (t , & xmlbuffer , & len )) {
34+ if (0 != opal_hwloc_base_topology_export_xmlbuffer (t , & xmlbuffer , & len )) {
3535 return OPAL_ERROR ;
3636 }
3737
@@ -106,9 +106,7 @@ int opal_hwloc_unpack(opal_buffer_t *buffer, void *dest,
106106 /* since we are loading this from an external source, we have to
107107 * explicitly set a flag so hwloc sets things up correctly
108108 */
109- if (0 != hwloc_topology_set_flags (t , (HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM |
110- HWLOC_TOPOLOGY_FLAG_WHOLE_SYSTEM |
111- HWLOC_TOPOLOGY_FLAG_IO_DEVICES ))) {
109+ if (0 != opal_hwloc_base_topology_set_flags (t , HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM , true)) {
112110 rc = OPAL_ERROR ;
113111 hwloc_topology_destroy (t );
114112 goto cleanup ;
@@ -137,11 +135,6 @@ int opal_hwloc_unpack(opal_buffer_t *buffer, void *dest,
137135 goto cleanup ;
138136 }
139137
140- /* filter the cpus thru any default cpu set */
141- if (OPAL_SUCCESS != (rc = opal_hwloc_base_filter_cpus (t ))) {
142- goto cleanup ;
143- }
144-
145138 /* pass it back */
146139 tarray [i ] = t ;
147140
@@ -197,10 +190,10 @@ int opal_hwloc_compare(const hwloc_topology_t topo1,
197190 * where we really need to do a tree-wise search so we only compare
198191 * the things we care about, and ignore stuff like MAC addresses
199192 */
200- if (0 != hwloc_topology_export_xmlbuffer (t1 , & x1 , & l1 )) {
193+ if (0 != opal_hwloc_base_topology_export_xmlbuffer (t1 , & x1 , & l1 )) {
201194 return OPAL_EQUAL ;
202195 }
203- if (0 != hwloc_topology_export_xmlbuffer (t2 , & x2 , & l2 )) {
196+ if (0 != opal_hwloc_base_topology_export_xmlbuffer (t2 , & x2 , & l2 )) {
204197 free (x1 );
205198 return OPAL_EQUAL ;
206199 }
@@ -269,18 +262,6 @@ static void print_hwloc_obj(char **output, char *prefix,
269262 free (tmp );
270263 tmp = tmp2 ;
271264 }
272- if (NULL != obj -> online_cpuset ) {
273- hwloc_bitmap_snprintf (string , OPAL_HWLOC_MAX_STRING , obj -> online_cpuset );
274- asprintf (& tmp2 , "%s%sOnline: %s" , tmp , pfx , string );
275- free (tmp );
276- tmp = tmp2 ;
277- }
278- if (NULL != obj -> allowed_cpuset ) {
279- hwloc_bitmap_snprintf (string , OPAL_HWLOC_MAX_STRING , obj -> allowed_cpuset );
280- asprintf (& tmp2 , "%s%sAllowed: %s" , tmp , pfx , string );
281- free (tmp );
282- tmp = tmp2 ;
283- }
284265 if (HWLOC_OBJ_MACHINE == obj -> type ) {
285266 /* root level object - add support values */
286267 support = (struct hwloc_topology_support * )hwloc_topology_get_support (topo );
0 commit comments