Fix PP in Ice Lake

This commit is contained in:
Dr-Noob
2020-08-31 18:27:32 +02:00
parent 1a9c0546f2
commit ab1416563c
4 changed files with 10 additions and 2 deletions

View File

@@ -638,7 +638,10 @@ char* get_str_peak_performance(struct cpuInfo* cpu, struct topology* topo, int64
if(cpu->FMA3 || cpu->FMA4)
flops = flops*2;
if(cpu->AVX512)
// Ice Lake has AVX512, but it has 1 VPU for AVX512, while
// it has 2 for AVX2. If this is a Ice Lake CPU, we are computing
// the peak performance supposing AVX2, not AVX512
if(cpu->AVX512 && vpus_are_AVX512(cpu))
flops = flops*16;
else if(cpu->AVX || cpu->AVX2)
flops = flops*8;