Preparation for #1.4.0 (#30)
- Fixed CPU affinity on Windows for NUMA and CPUs with lot of cores - Implemented per thread configurable Multihash mode (double, triple, quadruple, quintuple) - Rebased from XMRig 2.4.4
This commit is contained in:
parent
5f8ea98764
commit
acf27e9341
41 changed files with 2575 additions and 1104 deletions
|
@ -27,23 +27,18 @@
|
|||
|
||||
#include "Cpu.h"
|
||||
|
||||
|
||||
char Cpu::m_brand[64] = { 0 };
|
||||
int Cpu::m_flags = 0;
|
||||
int Cpu::m_l2_cache = 0;
|
||||
int Cpu::m_l3_cache = 0;
|
||||
int Cpu::m_sockets = 1;
|
||||
int Cpu::m_totalCores = 0;
|
||||
int Cpu::m_totalThreads = 0;
|
||||
|
||||
|
||||
int Cpu::optimalThreadsCount(int algo, bool doubleHash, int maxCpuUsage)
|
||||
void CpuImpl::init()
|
||||
{
|
||||
return m_totalThreads;
|
||||
m_brand = {0};
|
||||
m_flags = 0;
|
||||
m_l2_cache = 0;
|
||||
m_l3_cache = 0;
|
||||
m_sockets = 1;
|
||||
m_totalCores = 0;
|
||||
m_totalThreads = 0;
|
||||
}
|
||||
|
||||
|
||||
void Cpu::initCommon()
|
||||
void CpuImpl::initCommon()
|
||||
{
|
||||
memcpy(m_brand, "Unknown", 7);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue