mirror of
https://github.com/xmrig/xmrig.git
synced 2025-02-02 03:06:30 +00:00
Hardcode L2 cache size for Apple M1.
This commit is contained in:
parent
643142dc30
commit
cc5c2c41be
1 changed files with 6 additions and 0 deletions
|
@ -187,6 +187,12 @@ xmrig::HwlocCpuInfo::HwlocCpuInfo()
|
|||
m_nodeset.emplace_back(node->os_index);
|
||||
}
|
||||
}
|
||||
|
||||
# if defined(XMRIG_OS_MACOS) && defined(XMRIG_ARM)
|
||||
if (L2() == 33554432U && m_cores == 8 && m_cores == m_threads) {
|
||||
m_cache[2] = 16777216U;
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue