From 9a842a593b2d7a0148a6bdfb77e584c3af2064b4 Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 8 Aug 2019 00:21:01 +0700 Subject: [PATCH] Use intensity=2 for cn-pico. --- .../AMD_Ryzen_7_3700X_windows_2_0_4.xml | 104 ++++++++++++++++++ src/backend/cpu/platform/HwlocCpuInfo.cpp | 6 + 2 files changed, 110 insertions(+) create mode 100644 doc/topology/AMD_Ryzen_7_3700X_windows_2_0_4.xml diff --git a/doc/topology/AMD_Ryzen_7_3700X_windows_2_0_4.xml b/doc/topology/AMD_Ryzen_7_3700X_windows_2_0_4.xml new file mode 100644 index 00000000..1f2d0ee4 --- /dev/null +++ b/doc/topology/AMD_Ryzen_7_3700X_windows_2_0_4.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/backend/cpu/platform/HwlocCpuInfo.cpp b/src/backend/cpu/platform/HwlocCpuInfo.cpp index c441457e..d88b4207 100644 --- a/src/backend/cpu/platform/HwlocCpuInfo.cpp +++ b/src/backend/cpu/platform/HwlocCpuInfo.cpp @@ -277,6 +277,12 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith size_t cacheHashes = ((L3 + extra) + (scratchpad / 2)) / scratchpad; +# ifdef XMRIG_ALGO_CN_PICO + if (algorithm == Algorithm::CN_PICO_0 && (cacheHashes / PUs) >= 2) { + intensity = 2; + } +# endif + # ifdef XMRIG_ALGO_CN_GPU if (algorithm == Algorithm::CN_GPU) { cacheHashes = PUs;