Hardcode L2 cache size for Apple M1.
This commit is contained in:
parent
643142dc30
commit
cc5c2c41be
@ -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 New Issue
Block a user