Return correct hugePages count if NUMA mode used.

This commit is contained in:
XMRig 2019-07-27 21:31:11 +07:00
parent 828fc065b0
commit 9df9275120
4 changed files with 27 additions and 9 deletions

View file

@ -29,6 +29,7 @@
#include <stdint.h>
#include <utility>
namespace xmrig
@ -45,6 +46,7 @@ class Rx
public:
static bool isReady(const Job &job, uint32_t nodeId);
static RxDataset *dataset(uint32_t nodeId);
static std::pair<size_t, size_t> hugePages();
static void init(const Job &job, int initThreads, bool hugePages, bool numa);
static void stop();