Added support for allocate RandomX dataset on each NUMA node.

This commit is contained in:
XMRig
2019-07-27 19:41:59 +07:00
parent 279a12e640
commit 70d9b6e793
11 changed files with 178 additions and 70 deletions

View File

@@ -47,7 +47,8 @@ public:
HwlocCpuInfo();
~HwlocCpuInfo() override;
static inline bool has(Feature feature) { return m_features & feature; }
static inline bool has(Feature feature) { return m_features & feature; }
static inline const std::vector<uint32_t> &nodeIndexes() { return m_nodeIndexes; }
protected:
CpuThreads threads(const Algorithm &algorithm) const override;
@@ -62,6 +63,7 @@ protected:
private:
void processTopLevelCache(hwloc_obj_t obj, const Algorithm &algorithm, CpuThreads &threads) const;
static std::vector<uint32_t> m_nodeIndexes;
static uint32_t m_features;
char m_backend[20];