sys-sage
Loading...
Searching...
No Matches
hwloc.hpp
Go to the documentation of this file.
1#ifndef HWLOC
2#define HWLOC
3
4#include <vector>
5#include <string>
6
7#include <libxml/parser.h>
8#include <libxml/tree.h>
9
10#include "Component.hpp"
11#include "Thread.hpp"
12#include "Core.hpp"
13#include "Cache.hpp"
14#include "Subdivision.hpp"
15#include "Numa.hpp"
16#include "Chip.hpp"
17#include "Memory.hpp"
18#include "Storage.hpp"
19#include "Node.hpp"
20
23namespace sys_sage {
30 int parseHwlocOutput(Node* n, std::string xmlPath);
32 int xmlProcessChildren(Component* c, xmlNode* parent, int level);
34 Component* createChildC(std::string type, xmlNode* node);
36 std::string xmlGetPropStr(xmlNode* node, std::string key);
37
38 //SVDOCTODO private?
39 int removeUnknownCompoents(Component* c);
43 extern std::vector<std::string> xmlRelevantNames;
47 extern std::vector<std::string> xmlRelevantObjectTypes;
48
49} //namespace sys_sage
50#endif
Generic class for all hardware and logical components in sys-sage.
Definition Component.hpp:36
Definition Node.hpp:12
std::vector< std::string > xmlRelevantObjectTypes
Definition hwloc.cpp:17
std::vector< std::string > xmlRelevantNames
Definition hwloc.cpp:10
int parseHwlocOutput(Node *n, std::string xmlPath)