#include <vector>
#include <string>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "Component.hpp"
Go to the source code of this file.
◆ parseHwlocOutput()
int parseHwlocOutput |
( |
Node * | n, |
|
|
std::string | xmlPath ) |
Parser function for importing hwloc XML output to sys-sage.
The parser looks for the XML object names defined in xmlRelevantNames, and considers (i.e. parses) the XML object types as defined in xmlRelevantObjectTypes.
- Parameters
-
n | - Pointer to an already existing Node where the hwloc topology will get parsed. |
xmlPath | - Path to the XML output of hwloc that should be parsed and uploaded to sys-sage. |
◆ xmlRelevantNames
std::vector<std::string> xmlRelevantNames |
|
extern |
Defines parsed XML object names: "topology", "object"
◆ xmlRelevantObjectTypes
std::vector<std::string> xmlRelevantObjectTypes |
|
extern |
Defines parsed XML object types: "Machine", "Package", "Cache", "L3Cache", "L2Cache", "L1Cache", "NUMANode", "Core", "PU"