mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +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)
|
||||
{
|
||||
uint64_t ts = Chrono::steadyMSecs();
|
||||
auto id = m_nodeset.front();
|
||||
auto primary = dataset(id);
|
||||
uint64_t ts = Chrono::steadyMSecs();
|
||||
uint32_t id = 0;
|
||||
|
||||
for (const auto &kv : m_datasets) {
|
||||
if (kv.second->cache()) {
|
||||
id = kv.first;
|
||||
}
|
||||
}
|
||||
|
||||
auto primary = dataset(id);
|
||||
primary->init(m_seed.data(), threads, priority);
|
||||
|
||||
printDatasetReady(id, ts);
|
||||
|
|
Loading…
Reference in a new issue