mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
Fixed RandomX cache initialization if 1GB pages fails to allocate on a first NUMA node.
This commit is contained in:
parent
0addf91a70
commit
ae3ff0f570
1 changed files with 9 additions and 3 deletions
|
@ -176,10 +176,16 @@ public:
|
||||||
|
|
||||||
inline void initDatasets(uint32_t threads, int priority)
|
inline void initDatasets(uint32_t threads, int priority)
|
||||||
{
|
{
|
||||||
uint64_t ts = Chrono::steadyMSecs();
|
uint64_t ts = Chrono::steadyMSecs();
|
||||||
auto id = m_nodeset.front();
|
uint32_t id = 0;
|
||||||
auto primary = dataset(id);
|
|
||||||
|
|
||||||
|
for (const auto &kv : m_datasets) {
|
||||||
|
if (kv.second->cache()) {
|
||||||
|
id = kv.first;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
auto primary = dataset(id);
|
||||||
primary->init(m_seed.data(), threads, priority);
|
primary->init(m_seed.data(), threads, priority);
|
||||||
|
|
||||||
printDatasetReady(id, ts);
|
printDatasetReady(id, ts);
|
||||||
|
|
Loading…
Reference in a new issue