Fix #25: Compute PP taking into account the number of sockets

This commit is contained in:
Dr-Noob
2020-08-31 09:33:39 +02:00
parent 81a45628f0
commit d998acdcdf

View File

@@ -610,7 +610,7 @@ char* get_str_peak_performance(struct cpuInfo* cpu, struct topology* topo, int64
return string; return string;
} }
double flops = topo->physical_cores*(freq*1000000); double flops = topo->physical_cores * topo->sockets * (freq*1000000);
// Intel USUALLY has two VPUs. I have never seen an AMD // Intel USUALLY has two VPUs. I have never seen an AMD
// with two VPUs. // with two VPUs.