mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Generate "rx" and "rx/wow" sections of CPU threads.
This commit is contained in:
@@ -22,12 +22,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <libcpuid.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#include "backend/cpu/platform/AdvancedCpuInfo.h"
|
||||
|
||||
@@ -144,6 +143,7 @@ xmrig::CpuThreads xmrig::AdvancedCpuInfo::threads(const Algorithm &algorithm) co
|
||||
if (cache) {
|
||||
cache *= 1024;
|
||||
const size_t memory = algorithm.memory();
|
||||
assert(memory > 0);
|
||||
|
||||
count = cache / memory;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user