mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-24 05:23:16 -05:00
Compare commits
4 Commits
a264cc018a
...
5152aca99c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5152aca99c | ||
|
|
36fdfa2694 | ||
|
|
6cfc02d24f | ||
|
|
df10ccbc8c |
@@ -36,7 +36,6 @@
|
|||||||
#include "crypto/rx/RxCache.h"
|
#include "crypto/rx/RxCache.h"
|
||||||
#include "crypto/rx/RxDataset.h"
|
#include "crypto/rx/RxDataset.h"
|
||||||
#include "crypto/rx/RxVm.h"
|
#include "crypto/rx/RxVm.h"
|
||||||
#include "crypto/ghostrider/ghostrider.h"
|
|
||||||
#include "net/JobResults.h"
|
#include "net/JobResults.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -45,6 +44,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef XMRIG_ALGO_GHOSTRIDER
|
||||||
|
#include "crypto/ghostrider/ghostrider.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef XMRIG_FEATURE_BENCHMARK
|
#ifdef XMRIG_FEATURE_BENCHMARK
|
||||||
# include "backend/common/benchmark/BenchState.h"
|
# include "backend/common/benchmark/BenchState.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -320,11 +320,16 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith
|
|||||||
L2 += l2->attr->cache.size;
|
L2 += l2->attr->cache.size;
|
||||||
L2_associativity = l2->attr->cache.associativity;
|
L2_associativity = l2->attr->cache.associativity;
|
||||||
|
|
||||||
if (L3_exclusive && l2->attr->cache.size >= scratchpad) {
|
if (L3_exclusive) {
|
||||||
|
if (vendor() == VENDOR_AMD) {
|
||||||
|
extra += std::min<size_t>(l2->attr->cache.size, scratchpad);
|
||||||
|
}
|
||||||
|
else if (l2->attr->cache.size >= scratchpad) {
|
||||||
extra += scratchpad;
|
extra += scratchpad;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// This code is supposed to run only on Intel CPUs
|
// This code is supposed to run only on Intel CPUs
|
||||||
if ((vendor() == VENDOR_INTEL) && (scratchpad == 2 * oneMiB)) {
|
if ((vendor() == VENDOR_INTEL) && (scratchpad == 2 * oneMiB)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user