Integration of cnv2 and asm optimizations for cnv1&cnv2 thx to @SChernykh (#185)
This commit is contained in:
parent
fe5f6f0673
commit
89e210ddd7
33 changed files with 4957 additions and 862 deletions
|
@ -80,4 +80,15 @@ void CpuImpl::initCommon()
|
|||
if (data.flags[CPU_FEATURE_BMI2]) {
|
||||
m_flags |= Cpu::BMI2;
|
||||
}
|
||||
|
||||
# ifndef XMRIG_NO_ASM
|
||||
if (data.vendor == VENDOR_AMD && data.ext_family >= 0x17) {
|
||||
m_asmOptimization = AsmOptimization::ASM_RYZEN;
|
||||
} else if (data.vendor == VENDOR_INTEL &&
|
||||
((data.ext_family >= 0x06 && data.ext_model > 0x2) ||
|
||||
(data.ext_family >= 0x06 && data.ext_model == 0x2 && data.model >= 0xA))) {
|
||||
m_asmOptimization = AsmOptimization::ASM_INTEL;
|
||||
}
|
||||
# endif
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue