Pothos  0.1.1
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
NumaInfo.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <Pothos/Config.hpp>
13 #include <vector>
14 #include <cstddef>
15 
16 namespace Pothos {
17 namespace System {
18 
23 {
24 public:
25 
27  NumaInfo(void);
28 
32  static std::vector<NumaInfo> get(void);
33 
35  size_t nodeNumber;
36 
38  size_t totalMemory;
39 
41  size_t freeMemory;
42 
44  std::vector<size_t> cpus;
45 };
46 
47 } //namespace System
48 } //namespace Pothos
std::vector< size_t > cpus
A list of CPUs located on this NUMA node.
Definition: NumaInfo.hpp:44
#define POTHOS_API
Definition: Config.hpp:41
size_t totalMemory
The total memory on this NUMA node in bytes.
Definition: NumaInfo.hpp:38
Definition: NumaInfo.hpp:22
size_t freeMemory
The available memory on this NUMA node in bytes.
Definition: NumaInfo.hpp:41
size_t nodeNumber
The numeric identifier for this NUMA node.
Definition: NumaInfo.hpp:35