Integration of cnv2 and asm optimizations for cnv1&cnv2 thx to @SChernykh (#185)

This commit is contained in:
Ben Gräf 2018-10-16 00:20:27 +02:00 committed by GitHub
parent fe5f6f0673
commit 89e210ddd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 4957 additions and 862 deletions

View file

@ -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
}