1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 15:42:38 -05:00

Hardcode L2 cache size for Apple M1.

This commit is contained in:
XMRig
2020-12-13 20:09:29 +07:00
parent 643142dc30
commit cc5c2c41be

View File

@@ -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
}