Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] #23: network topology support andv1.0semanticfixes
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2010-01-11 15:27:35


Jeff Squyres, le Mon 11 Jan 2010 15:20:45 -0500, a écrit :
> > > I'm curious -- what's the definition of cat'ing 2 XML files together? Does the 2nd become a subtree of the first?
> >
> > No, I mean putting both under a "misc" object for instance.
>
> Can you explain more; maybe provide an example or two?

lstopo --synthetic 1 test.xml gives

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "hwloc.dtd">
<root>
  <object type="System" os_level="-1" os_index="0" cpuset="0x00000001" dmi_board_vendor="" dmi_board_name="" memory_kB="0" huge_page_free="0" huge_page_size_kB="0">
    <object type="Proc" os_level="-1" os_index="0" cpuset="0x00000001"/>
  </object>
</root>

The concatenation would be

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "hwloc.dtd">
<root>
 <object type="Misc">
  <object type="System" os_level="-1" os_index="0" cpuset="0x00000001" dmi_board_vendor="" dmi_board_name="" memory_kB="0" huge_page_free="0" huge_page_size_kB="0">
    <object type="Proc" os_level="-1" os_index="0" cpuset="0x00000001"/>
  </object>
  <object type="System" os_level="-1" os_index="0" cpuset="0x00000001" dmi_board_vendor="" dmi_board_name="" memory_kB="0" huge_page_free="0" huge_page_size_kB="0">
    <object type="Proc" os_level="-1" os_index="0" cpuset="0x00000001"/>
  </object>
 </object>
</root>