Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.0.3

  |   Home   |   Support   |   FAQ   |  

Tinker with topologies.

Functions

void hwloc_topology_export_xml (hwloc_topology_t topology, const char *xmlpath)
 Export the topology into an XML file.
hwloc_obj_t hwloc_topology_insert_misc_object_by_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, const char *name)
 Add a MISC object to the topology.
hwloc_obj_t hwloc_topology_insert_misc_object_by_parent (hwloc_topology_t topology, hwloc_obj_t parent, const char *name)
 Add a MISC object to the topology.

Function Documentation

void hwloc_topology_export_xml ( hwloc_topology_t  topology,
const char *  xmlpath 
)

Export the topology into an XML file.

This file may be loaded later through hwloc_topology_set_xml().

hwloc_obj_t hwloc_topology_insert_misc_object_by_cpuset ( hwloc_topology_t  topology,
hwloc_const_cpuset_t  cpuset,
const char *  name 
)

Add a MISC object to the topology.

A new MISC object will be created and inserted into the topology at the position given by cpuset.

cpuset and name will be copied.

Returns:
the newly-created object
hwloc_obj_t hwloc_topology_insert_misc_object_by_parent ( hwloc_topology_t  topology,
hwloc_obj_t  parent,
const char *  name 
)

Add a MISC object to the topology.

A new MISC object will be created and inserted into the topology at the position given by parent.

name will be copied.

Returns:
the newly-created object