Tweaked autoconfig for AMD CPUs with < 2 MB L3 cache per thread
This commit is contained in:
parent
d24e13e605
commit
e4c30eb0dd
1 changed files with 2 additions and 1 deletions
|
@ -322,7 +322,8 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith
|
||||||
|
|
||||||
if (L3_exclusive) {
|
if (L3_exclusive) {
|
||||||
if (vendor() == VENDOR_AMD) {
|
if (vendor() == VENDOR_AMD) {
|
||||||
extra += std::min<size_t>(l2->attr->cache.size, scratchpad);
|
// For some reason, AMD CPUs can use only half of the exclusive L2/L3 cache combo efficiently
|
||||||
|
extra += std::min<size_t>(l2->attr->cache.size / 2, scratchpad);
|
||||||
}
|
}
|
||||||
else if (l2->attr->cache.size >= scratchpad) {
|
else if (l2->attr->cache.size >= scratchpad) {
|
||||||
extra += scratchpad;
|
extra += scratchpad;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue