#include <vector>
#include <string>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "Component.hpp"
#include "Thread.hpp"
#include "Core.hpp"
#include "Cache.hpp"
#include "Subdivision.hpp"
#include "Numa.hpp"
#include "Chip.hpp"
#include "Memory.hpp"
#include "Storage.hpp"
#include "Node.hpp"
Go to the source code of this file.
◆ parseHwlocOutput()
int sys_sage::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
vector< string > sys_sage::xmlRelevantNames |
|
extern |
Initial value:{
"topology",
"object",
"info"
}
Defines parsed XML object names: "topology", "object"
◆ xmlRelevantObjectTypes
vector< string > sys_sage::xmlRelevantObjectTypes |
|
extern |
Initial value:{
"Machine",
"Package",
"Cache",
"L3Cache",
"L2Cache",
"L1Cache",
"NUMANode",
"Core",
"PU",
"Group"
}
Defines parsed XML object types: "Machine", "Package", "Cache", "L3Cache", "L2Cache", "L1Cache", "NUMANode", "Core", "PU"