Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] lstopo --top
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2013-06-24 06:19:25


Le 21/06/2013 17:50, Jiri Hladky a écrit :
> I have now changed it to
> hwloc_obj[0] = hwloc_get_first_largest_obj_inside_cpuset(topology,
> cpuset);
> hwloc_obj[1] = hwloc_obj[0]->parent;
> and tried both
> hwloc_topology_insert_misc_object_by_parent (topology, hwloc_obj[0],
> data);
> hwloc_topology_insert_misc_object_by_parent (topology, hwloc_obj[1],
> data);
>
> but lstopo will core dump with the XML file
> $lstopo --input /tmp/a.xml
> lstopo: topology.c:1128: add_default_object_sets: Assertion
> `obj->cpuset' failed.
> Aborted (core dumped)
>

Should be fixed with the attached patch (already applied to trunk and
stable branches).
Things were totally buggy, looks like you were the very first one to
play with this and XML :)
thanks
Brice